firebase-cljs Api Documentation

Version: 1.3.0

firebase-cljs.promise

FirebasePromise

protocol

members

all

(all _ values)

Convert an array of Promises, to a single array of values. Promise.all() resolves only after all the Promises in the array have resolved.

reject

(reject _ failure)

Return (an immediately) rejected Promise.

resolve

(resolve _ value)

Return (an immediately) resolved Promise.

FirebaseThenable

protocol

members

catch

(catch _ callback)

Assign a callback when the Thenable rejects.

then

(then _ callback)(then _ callback failure)

Assign callback functions called when the Thenable value either resolves, or is rejected.

promise

(promise)(promise val)