| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Network.Protocol.ChainSync.Direct
Documentation
direct :: Monad m => ChainSyncServer header point tip m a -> ChainSyncClient header point tip m b -> m (a, b) Source #
The 'ClientStream m' and 'ServerStream m' types are complementary. The
former can be used to feed the latter directly, in the same thread.
That's demonstrated here by constructing direct.