package js
Available on jsnew (init:T ‑> Void ‑> Dynamic ‑> Void ‑> Void)
Throws:
null |
DOMError |
---|
catchError<TOut> (rejectCallback:EitherType<Dynamic ‑> Void, PromiseCallback<Dynamic, TOut>>):Promise<TOut>
then<TOut> (fulfillCallback:Null<PromiseCallback<T, TOut>>, ?rejectCallback:EitherType<Dynamic ‑> Void, PromiseCallback<Dynamic, TOut>>):Promise<TOut>
static all (iterable:Array<Dynamic>):Promise<Array<Dynamic>>
static race (iterable:Array<Dynamic>):Promise<Dynamic>
static reject<T> (?value:Dynamic):Promise<T>
static resolve<T> (?value:T ):Promise<T>
static resolve<T> (promise:Promise<T>):Promise<T>
static resolve<T> (thenable:Thenable<T>):Promise<T>
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/Promise.html