|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | Promise_catch(this, handler, userdata) |
| #define | Promise_new() |
| #define | Promise_then(this, handler, userdata) |
Functions | |
| entityclass (Promise) | |
| Promise | Promise_catch_ (Promise this, Promise ret, Promise(Promise ret, entity err, entity userdata) handler, entity userdata) |
| Promise | Promise_new_ (Promise this) |
| 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_then_ (Promise this, Promise ret, Promise(Promise ret, entity result, entity userdata) handler, entity userdata) |
| #define Promise_catch | ( | this, | |
| handler, | |||
| userdata ) |
Definition at line 21 of file promise.qh.
| #define Promise_new | ( | ) |
Definition at line 5 of file promise.qh.
| #define Promise_then | ( | this, | |
| handler, | |||
| userdata ) |
Definition at line 13 of file promise.qh.
| entityclass | ( | Promise | ) |
| Promise Promise_new_ | ( | Promise | this | ) |
Definition at line 51 of file promise.qc.
References _Promise_finalize(), and ref_init().
| void Promise_reject | ( | Promise | this | ) |
notify all Promise_catch subscribers that this promise has rejected
Definition at line 79 of file promise.qc.
References _Promise_handle(), IL_DELETE, IL_EACH, LOG_SEVERE, LOG_SEVEREF, PROMISE_PENDING, PROMISE_REJECTED, and unref().
Referenced by _Promise_onReject_default().
| void Promise_resolve | ( | Promise | this | ) |
notify all Promise_then subscribers that this promise has resolved
Definition at line 60 of file promise.qc.
References _Promise_handle(), IL_DELETE, IL_EACH, LOG_SEVERE, LOG_SEVEREF, PROMISE_PENDING, PROMISE_RESOLVED, and unref().
Referenced by _Promise_onResolve_default().
| Promise Promise_then_ | ( | Promise | this, |
| Promise | ret, | ||
| Promise(Promise ret, entity result, entity userdata) | handler, | ||
| entity | userdata ) |
Definition at line 180 of file promise.qc.
References _Promise_then(), entity(), func_null(), result, and unref().