Module
Promise.Lazy
- Package
- purescript-js-promise
- Repository
- purescript-contrib/purescript-js-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