ouroboros-network-protocols:testlib
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.ChainSync.Direct

Synopsis

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.

direct_ :: Monad m => ServerStIdle header point tip m a -> ClientStIdle header point tip m b -> m (a, b) Source #