Module
Web.Promise.Lazy
- Package
- purescript-web-promise
- Repository
- purescript-web/purescript-web-promise
#LazyPromise Source
newtype LazyPromise a
A pure Promise
that has not been executed yet. This type can be used
with do
syntax.
Constructors
LazyPromise (Effect (Promise (Box a)))
Instances
#new Source
new :: forall a. Executor a -> LazyPromise a
#catch Source
catch :: forall a b. (Rejection -> LazyPromise b) -> LazyPromise a -> LazyPromise b
#finally Source
finally :: forall a. LazyPromise Unit -> LazyPromise a -> LazyPromise a
#all Source
all :: forall a. Array (LazyPromise a) -> LazyPromise (Array a)
#race Source
race :: forall a. Array (LazyPromise a) -> LazyPromise a
#fromPromise Source
fromPromise :: forall a. Effect (Promise a) -> LazyPromise a