Module
Control.Monad.Aff.AVar
- Package
- purescript-aff
- Repository
- slamdata/purescript-aff
A low-level primitive for building asynchronous code.
#tryTakeVar Source
tryTakeVar :: forall a e. AVar a -> AffAVar e (Maybe a)
A variant of takeVar
which return immediately if the asynchronous avar
was empty. Nothing if the avar empty and Just a
if the avar have contents a
.
#tryPeekVar Source
tryPeekVar :: forall a e. AVar a -> AffAVar e (Maybe a)
A variant of peekVar
which return immediately when the asynchronous avar
was empty. Nothing if the avar empty and Just a
if the avar have contents a
.