throttle-io-stream

Throttler between arbitrary IO producer and consumer functions https://github.com/mtesseract/throttle-io-stream#readme

Version on this page:0.2.0.1
LTS Haskell 12.24:0.2.0.1
Stackage Nightly 2018-12-18:0.2.0.1
Latest on Hackage:0.2.0.1

See all snapshots throttle-io-stream appears in

BSD3 licensed by Moritz Schulte
Maintained by mtesseract@silverratio.net

Module documentation for 0.2.0.1

There are no documented modules for this package.

throttle-io-stream Hackage version Stackage version Build Status

About

This packages provides throttling functionality for arbitrary IO producers and consumers. The core function exported is the following:

throttle :: ThrottleConf a     -- ^ Throttling configuration
         -> IO (Maybe a)       -- ^ Input callback
         -> (Maybe a -> IO ()) -- ^ Output callback
         -> IO (Async ())      -- ^ Returns an async handler for this
                               -- throttling process

This will spawn asynchronous operations that

  1. consume data using the provided input callback and write it into an internal buffering queue and

  2. produce data from the buffering queue using the provided consumer callback.

Depends on 5 packages:
Used by 1 package:
comments powered byDisqus