Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SendInstructions = SendInstructions {}
- produce :: (IsStream t, MonadAsync m) => Channel -> t m SendInstructions -> t m ()
- consume :: (IsStream t, MonadAsync m) => Channel -> Queue -> Ack -> t m (Message, Envelope)
How to use this library
This section contains basic step-by-step usage of the library.
You can either build a producer, which will publish all the messages of a stream:
Streamly.drain $ produce channel sendInstructionsStream
Or a consumer, which will contain the Message
s and Envelope
s of
a queue:
Streamly.drain $ consume channel aQueue NoAck
data SendInstructions Source #
Informations to be sent
See Network.AMQP.publishMsg'
for options
Instances
Show SendInstructions Source # | |
Defined in Network.AMQP.Streamly showsPrec :: Int -> SendInstructions -> ShowS # show :: SendInstructions -> String # showList :: [SendInstructions] -> ShowS # |
produce :: (IsStream t, MonadAsync m) => Channel -> t m SendInstructions -> t m () Source #
Publish the produced messages