Module

Web.Promise.Lazy

#Box

data Box a

A trivial box that adds a layer between promises to prevent automatic flattening.

Constructors

#LazyPromise

newtype LazyPromise a

A pure Promise that has not been executed yet. This type can be used with do syntax.

Constructors

Instances

#new

new :: forall a. Executor a -> LazyPromise a

#catch

catch :: forall a b. (Rejection -> LazyPromise b) -> LazyPromise a -> LazyPromise b

#finally

#all

all :: forall a. Array (LazyPromise a) -> LazyPromise (Array a)

#race

race :: forall a. Array (LazyPromise a) -> LazyPromise a

Modules