Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Network.InboundGovernor.InformationChannel
Synopsis
- data InformationChannel a (m :: Type -> Type) = InformationChannel {
- readMessage :: STM m a
- readMessages :: STM m [a]
- writeMessage :: a -> STM m ()
- newInformationChannel :: forall a m. MonadLabelledSTM m => m (InformationChannel a m)
Documentation
data InformationChannel a (m :: Type -> Type) Source #
Information channel.
Constructors
InformationChannel | |
Fields
|
newInformationChannel :: forall a m. MonadLabelledSTM m => m (InformationChannel a m) Source #
Create a new InformationChannel
backed by a TBQueue
.