butler-0.0.1.0: At your service.
Safe HaskellSafe-Inferred
LanguageGHC2021

Butler.Core.Dynamic

Description

This module contains a small wrapper around Data.Dynamic.

Synopsis

Documentation

data Dynamics #

addDynamic :: Typeable a => Dynamics -> DynamicsAddr -> a -> STM () #

delDynamic :: Dynamics -> DynamicsAddr -> STM () #

withDynamic :: (MonadUnliftIO m, Typeable a) => Dynamics -> DynamicsAddr -> a -> m b -> m b #

Wrap add/del around the action.

lookupDynamic :: Typeable a => Dynamics -> DynamicsAddr -> STM (Maybe a) #

waitDynamic :: (MonadIO m, Typeable a) => Milli -> Dynamics -> DynamicsAddr -> m (WaitResult a) #