Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module corresponds to TChan
in "stm" package
Synopsis
- type family TChan (m :: Type -> Type) :: Type -> Type
- newTChan :: MonadSTM m => STM m (TChan m a)
- newBroadcastTChan :: MonadSTM m => STM m (TChan m a)
- newTChanIO :: MonadSTM m => m (TChan m a)
- newBroadcastTChanIO :: MonadSTM m => m (TChan m a)
- dupTChan :: MonadSTM m => TChan m a -> STM m (TChan m a)
- cloneTChan :: MonadSTM m => TChan m a -> STM m (TChan m a)
- readTChan :: MonadSTM m => TChan m a -> STM m a
- tryReadTChan :: MonadSTM m => TChan m a -> STM m (Maybe a)
- peekTChan :: MonadSTM m => TChan m a -> STM m a
- tryPeekTChan :: MonadSTM m => TChan m a -> STM m (Maybe a)
- writeTChan :: MonadSTM m => TChan m a -> a -> STM m ()
- unGetTChan :: MonadSTM m => TChan m a -> a -> STM m ()
- isEmptyTChan :: MonadSTM m => TChan m a -> STM m Bool