Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data InformationChannel a (m :: Type -> Type) = InformationChannel {
- readMessage :: STM m a
- writeMessage :: a -> STM m ()
- type InboundGovernorInfoChannel (muxMode :: Mode) initiatorCtx peerAddr versionData bytes (m :: Type -> Type) a b = InformationChannel (NewConnectionInfo peerAddr (Handle muxMode initiatorCtx (ResponderContext peerAddr) versionData bytes m a b)) m
- newInformationChannel :: forall a m. MonadLabelledSTM m => m (InformationChannel a m)
Documentation
data InformationChannel a (m :: Type -> Type) Source #
Information channel.
InformationChannel | |
|
type InboundGovernorInfoChannel (muxMode :: Mode) initiatorCtx peerAddr versionData bytes (m :: Type -> Type) a b = InformationChannel (NewConnectionInfo peerAddr (Handle muxMode initiatorCtx (ResponderContext peerAddr) versionData bytes m a b)) m Source #
A channel which instantiates to NewConnectionInfo
and
Handle
.
- Producer: connection manger for duplex outbound connections.
- Consumer: inbound governor.
newInformationChannel :: forall a m. MonadLabelledSTM m => m (InformationChannel a m) Source #
Create a new InformationChannel
backed by a TBQueue
.