View source

class thx.promise.Future<T>

Available on all platforms

Class Fields

static function afterAll(arr:Array<Future<Dynamic>>):Future<Nil>

Available on cpp, cs, js, neko, php, python, swf

static function all<T>(arr:Array<Future<T>>):Future<Array<T>>

Available on cpp, cs, js, neko, php, python, swf

static function create<T>(handler:T -> Void -> Void):Future<T>

static inline function flatMap<T>(future:Future<Future<T>>):Future<T>

static function sequence(arr:Array<Future<Dynamic>>):Future<Nil>

static function value<T>(v:T):Future<T>

Instance Fields

Toggle inherited fields

inline function delay(?delayms:Int):Future<T>

Available on java, js, swf

inline function hasValue():Bool

function map<TOut>(handler:T -> TOut):Future<TOut>

function mapAsync<TOut>(handler:T -> TOut -> Void -> Void):Future<TOut>

inline function mapFuture<TOut>(handler:T -> Future<TOut>):Future<TOut>

function mapPromise<TOut>(handler:T -> Promise<TOut>):Promise<TOut>

var state(default,null):Option<T>

function then(handler:T -> Void):Future<T>

function toString():String