-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A write buffer for STM channels and queues. -- -- See README.md @package write-buffer-stm @version 0.1.0.0 module WriteBuffer.STM.TBMQueue -- | This function takes a TBMQueue a and yields a new -- TBMQueue [a] which yields lists of the original -- inputs. The first parameter is the bound of the output queue size -- -- the threads will block if this size is reached and nothing is drawing -- from it. The second parameter is the chunk size -- at most, this many -- elements will be in each output list. The third parameter is the -- maximum amount of time to wait before yielding a list. writeBufferTBMQueue :: Int -> Int -> Integer -> TBMQueue a -> IO (TBMQueue [a]) module Main main :: IO ()