Methods

catch

catch(onReject) returns firebase.Thenable containing any type

Assign a callback when the Thenable rejects.

Parameter

onReject

Optional

function(non-null Error) returns any type

Called when the Thenable is rejected (with an error).

Returns

non-null firebase.Thenable containing any type 

then

then(onResolve, onReject) returns firebase.Thenable containing any type

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

Parameter

onResolve

Optional

function(T) returns any type

Called when the Thenable resolves.

onReject

Optional

function(non-null Error) returns any type

Called when the Thenable is rejected (with an error).

Returns

non-null firebase.Thenable containing any type