concurrent-0
Concurrent.Struct.Ref
data Ref f s Source
Instances
newRef :: (MonadPrim s m, Struct f) => f s -> m (Ref f s) Source
readRef :: (MonadPrim s m, Struct f) => Ref f s -> m (f s) Source
writeRef :: (MonadPrim s m, Struct f) => Ref f s -> f s -> m () Source
casRef :: (MonadPrim s m, Struct f) => Ref f s -> f s -> f s -> m (f s) Source