|
Control.Hasim.Action | Portability | unportable | Stability | experimental | Maintainer | jochem@functor.nl |
|
|
|
|
|
Description |
Convenience functions and shadowing of API internals.
Likely to be a more stable interface then Control.Hasim.Process.
|
|
Synopsis |
|
|
|
|
Time
|
|
|
Get the current time. The result will be nonnegative.
|
|
Waiting
|
|
|
:: | | => Time | The time period we wait. Must be nonnegative.
| -> Action pkt st () | | Wait for a nonnegative time period.
|
|
|
|
Wait forever. This can be useful in case you want to block,
waiting for incoming packets.
|
|
Sending
|
|
|
:: | | => pkt | The packet we send.
| -> Proc pkt st | The receiver process
| -> Time | The timeout. Must be nonnegative.
| -> Action pkt' st' Bool | | Send a packet to a process, with a timeout
time interval. Returns True iff the
packet was accepted.
|
|
|
|
:: | | => pkt | The packet we send
| -> Proc pkt st | The receiver process
| -> Action pkt' st' Bool | | Send a packet. Return True iff the packet was
accepted immediately. Do not wait in case the
packet was not accepted.
|
|
|
|
:: | | => pkt | The packet we send
| -> Proc pkt st | The receiver process
| -> Action pkt' st' () | | Send a packet. Wait as long as necessary to deliver the packet.
|
|
|
Receiving
|
|
|
:: | | => Acceptor pkt st | The acceptor to set
| -> Action pkt st () | The action to be executed
| -> Action pkt st () | | Execute an action with an Acceptor function
|
|
|
|
Execute an action without interruptions from incoming packets.
|
|
|
Receive a packet. Block until the first packet comes in.
|
|
|
Receive a packet, non-blocking.
|
|
Produced by Haddock version 2.3.0 |