chan-0.0.3: Some extra kit for Chans

Safe HaskellSafe
LanguageHaskell2010

Control.Concurrent.STM.TChan.Extra

Synopsis

Documentation

debounceStatic :: DiffNanosec -> TChan a -> IO (TChan a, Async ()) Source #

Note: In this model, even though we are using STM, a write to the outgoing channel does not imply a transactional write to the output channel; they are separated between a run IO layer, which means we cannot atomically debounce or interleave the system (because that depends on real-world time).