5 #define Promise_new() Promise_new_(new_pure(Promise)) 13 #define Promise_then(this, handler, userdata) Promise_then_(this, Promise_new(), handler, userdata) 21 #define Promise_catch(this, handler, userdata) Promise_catch_(this, Promise_new(), handler, userdata) void Promise_reject(Promise this)
notify all Promise_catch subscribers that this promise has rejected
void Promise_resolve(Promise this)
notify all Promise_then subscribers that this promise has resolved
Promise Promise_catch_(Promise this, Promise ret, Promise(Promise ret, entity err, entity userdata) handler, entity userdata)
Promise Promise_sleep(float n)
Promise Promise_new_(Promise this)
Promise Promise_then_(Promise this, Promise ret, Promise(Promise ret, entity result, entity userdata) handler, entity userdata)