Module
Effect.Promise
- Package
- purescript-promises
- Repository
- thimoteus/purescript-promises
#Promise Source
data Promise :: Type -> Type
A JavaScript promise.
Instances
(Deferred) => Functor Promise
(Deferred) => Apply Promise
(Deferred) => Applicative Promise
(Deferred) => Bind Promise
(Deferred) => Monad Promise
(Deferred) => MonadThrow Error Promise
(Deferred) => MonadError Error Promise
(Deferred, Semigroup a) => Semigroup (Promise a)
(Deferred, Monoid a) => Monoid (Promise a)
(Deferred) => MonadEffect Promise
#delay Source
delay :: forall a. Deferred => Milliseconds -> a -> Promise a
Cause a delay in execution, then resolve with the given value.