|
Xonotic
|
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | Promise_catch(this, handler, userdata) Promise_catch_(this, Promise_new(), handler, userdata) |
| #define | Promise_new() Promise_new_(new_pure(Promise)) |
| #define | Promise_then(this, handler, userdata) Promise_then_(this, Promise_new(), 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 More... | |
| void | Promise_resolve (Promise this) |
| notify all Promise_then subscribers that this promise has resolved More... | |
| Promise | Promise_sleep (float n) |
| Promise | Promise_then_ (Promise this, Promise ret, Promise(Promise ret, entity result, entity userdata) handler, entity userdata) |
| #define Promise_catch | ( | this, | |
| handler, | |||
| userdata | |||
| ) | Promise_catch_(this, Promise_new(), handler, userdata) |
Definition at line 21 of file promise.qh.
| #define Promise_new | ( | ) | Promise_new_(new_pure(Promise)) |
Definition at line 5 of file promise.qh.
Referenced by Promise_sleep().
| #define Promise_then | ( | this, | |
| handler, | |||
| userdata | |||
| ) | Promise_then_(this, Promise_new(), handler, userdata) |
Definition at line 13 of file promise.qh.
| entityclass | ( | Promise | ) |
| Promise Promise_catch_ | ( | Promise | this, |
| Promise | ret, | ||
| Promise(Promise ret, entity err, entity userdata) | handler, | ||
| entity | userdata | ||
| ) |
| Promise Promise_new_ | ( | Promise | this | ) |
Definition at line 51 of file promise.qc.
References _Promise_finalize(), _Promise_handle(), and ref_init().
Here is the call graph for this function:| 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(), _Promise_then(), entity(), IL_DELETE, IL_EACH, LOG_SEVERE, LOG_SEVEREF, PROMISE_PENDING, PROMISE_REJECTED, and unref().
Referenced by _Promise_onReject_default().
Here is the call graph for this function:
Here is the caller graph for this function:| 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(), and Promise_sleep().
Here is the call graph for this function:
Here is the caller graph for this function:| Promise Promise_sleep | ( | float | n | ) |
Definition at line 206 of file promise.qc.
References Promise_new, Promise_resolve(), setthink, time, and unref().
Here is the call graph for this function:| 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(), func_null(), and unref().
Here is the call graph for this function: