Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- type DiffNanosec = Int
- debounceStatic :: DiffNanosec -> TChan a -> IO (TChan a, Async ())
- intersperseStatic :: DiffNanosec -> IO a -> TChan a -> IO (TChan a, Async (), Async ())
Documentation
type DiffNanosec = Int Source #
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).
intersperseStatic :: DiffNanosec -> IO a -> TChan a -> IO (TChan a, Async (), Async ()) Source #