| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Hyperion.TokenPool
Documentation
A TokenPool keeps track of the number of resources of some
kind, represented by "tokens". 'TokenPool (Just var)' indicates a
limited number of tokens, and var contains the number of
available tokens. When var contains 0, processes wishing to use a
token must block until one becomes available (see
withToken). 'TokenPool Nothing' represents an unlimited number of
tokens.