Safe Haskell | None |
---|---|
Language | Haskell98 |
GuardedEvents implements guarded events for channels.
Documentation
data GuardedChannel guard value Source
HasListen GuardedChannel | |
Guard guard => HasReceive (GuardedChannel guard) | |
HasSend (GuardedChannel guard) |
newGuardedChannel :: HasGuardedChannel guardQueue valueQueue guard value => GQ guardQueue value -> VQ valueQueue -> IO (GuardedChannel guard value) Source
sneak :: Guard guard => GuardedChannel guard value -> GuardedEvent guard (Maybe value) Source
replace :: Guard guard => GuardedChannel guard value -> value -> GuardedEvent guard (Maybe value) Source