Copyright | (c) Samuel Schlesinger 2020 |
---|---|
License | MIT |
Maintainer | sgschlesinger@gmail.com |
Stability | experimental |
Portability | POSIX, Windows |
Safe Haskell | Safe |
Language | Haskell2010 |
Documentation
dequeue :: Queue a -> STM a Source #
Dequeue a single item onto the queue, retry
ing if there is nothing
there. This is the motivating use case of this library, allowing a thread to
register its interest in the head of a queue and be woken up by the
runtime system to read from the top of that queue when an item has
been made available.