Popularity
3.3
Declining
Activity
0.0
Stable
5
2
0

Monthly Downloads: 14
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Concurrency    

throttle-io-stream alternatives and similar packages

Based on the "Concurrency" category.
Alternatively, view throttle-io-stream alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of throttle-io-stream or a related project?

Add another 'Concurrency' Package

README

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.