Search results

Type of JavaScript Promises (with particular return type) Effects are not traced in the Promise type, as they form part of the Effect that results in the promise.

P purescript-aff-promise M Control.Promise
P purescript-web-promise M Web.Promise.Internal
P purescript-js-promise
P purescript-js-promise M Promise.Internal

A JavaScript promise.

P purescript-promises M Effect.Promise
promise :: forall a. Deferred => ((a -> Effect Unit) -> (Error -> Effect Unit) -> Effect Unit) -> Promise a

Create a promise by supplying a function which takes a success callback and error callback as arguments, returning an Effect.

P purescript-promises M Effect.Promise

Represents a thunk to create a Dexie Promise.

Ideally no async operations that are unrelated to indexed db should be modelled with these promises as they will automatically close an open transaction. So if you do not manually make a Promise, then the compiler can ensure you're not closing transactions.

See Transaction Scope for more details about closing transactions.

Documentation: dexie.org/docs/Promise/Promise Methods: Dexie.Promise

P purescript-dexie M Dexie.Promise
P purescript-node-telegram-bot-api M TelegramBot
P purescript-outwatch M OutWatch.Helpers.Promise

A type that represents JavaScript promises. Use this with the FFI and fromPromise to turn promises into tasks.

foreign import fetchImpl :: String -> Effect (Promise Error Json)
P purescript-task M Task
P purescript-js-promise-aff
P purescript-has-js-rep M HasJSRep
P purescript-bonjiri M Bonjiri
PromiseSpec :: forall a. (Effect (JSPromise a)) -> PromiseSpec a
P purescript-bonjiri M Bonjiri
P purescript-js-promise
P purescript-js-promise
P purescript-js-promise

No further results.