|
Xonotic
|
#include "promise.qh"
Include dependency graph for promise.qc:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Enumerations | |
| enum | { PROMISE_PENDING, PROMISE_RESOLVED, PROMISE_REJECTED } |
Functions | |
| void | _Promise_done (Promise this, Promise(Promise ret, entity result, entity userdata) onResolve, Promise(Promise ret, entity err, entity userdata) onReject, Promise ret, entity userdata) |
| void | _Promise_finalize (Promise this) |
| void | _Promise_handle (Promise this, PromiseHandler h) |
| Promise | _Promise_onReject_default (Promise ret, entity err, entity userdata) |
| Promise | _Promise_onResolve_default (Promise ret, entity result, entity userdata) |
| Promise | _Promise_then (Promise this, Promise ret, Promise(Promise ret, entity result, entity userdata) onResolve, Promise(Promise ret, entity result, entity userdata) onReject, entity userdata) |
| classfield (Promise) .int _promise_state | |
| classfield (PromiseHandler) .Promise _promise_handler_ret | |
| entityclass (PromiseHandler) | |
| Promise | Promise_catch_ (Promise this, Promise ret, Promise(Promise ret, entity result, entity userdata) onReject, 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) onResolve, entity userdata) |
| entity | REF (entity this) |
| void | ref_init (entity this, int init, void(entity this) finalize) |
| entity | unref (Promise this) |
| void (entity this) _ref_finalize | |
Variables | |
| entity entity userdata | _promise_handler_reject |
| entity entity userdata | _promise_handler_resolve |
| int | _ref_count |
| entity | err |
| entity | result |
| anonymous enum |
| Enumerator | |
|---|---|
| PROMISE_PENDING | |
| PROMISE_RESOLVED | |
| PROMISE_REJECTED | |
Definition at line 30 of file promise.qc.
| void _Promise_done | ( | Promise | this, |
| Promise(Promise ret, entity result, entity userdata) | onResolve, | ||
| Promise(Promise ret, entity err, entity userdata) | onReject, | ||
| Promise | ret, | ||
| entity | userdata | ||
| ) |
Definition at line 132 of file promise.qc.
References _Promise_handle(), and new_pure.
Referenced by _Promise_then().
Here is the call graph for this function:
Here is the caller graph for this function:| void _Promise_finalize | ( | Promise | this | ) |
Definition at line 46 of file promise.qc.
Referenced by Promise_new_().
Here is the caller graph for this function:| void _Promise_handle | ( | Promise | this, |
| PromiseHandler | h | ||
| ) |
Definition at line 106 of file promise.qc.
References _Promise_then(), func_null(), IL_NEW, IL_PUSH(), NULL, PROMISE_PENDING, PROMISE_REJECTED, and PROMISE_RESOLVED.
Referenced by _Promise_done(), Promise_new_(), Promise_reject(), and Promise_resolve().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 155 of file promise.qc.
References err, and Promise_reject().
Referenced by _Promise_then().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 148 of file promise.qc.
References Promise_resolve(), and result.
Referenced by _Promise_then().
Here is the call graph for this function:
Here is the caller graph for this function:| Promise _Promise_then | ( | Promise | this, |
| Promise | ret, | ||
| Promise(Promise ret, entity result, entity userdata) | onResolve, | ||
| Promise(Promise ret, entity result, entity userdata) | onReject, | ||
| entity | userdata | ||
| ) |
Definition at line 162 of file promise.qc.
References _Promise_done(), _Promise_onReject_default(), and _Promise_onResolve_default().
Referenced by _Promise_handle(), Promise_catch_(), Promise_reject(), and Promise_then_().
Here is the call graph for this function:
Here is the caller graph for this function:| classfield | ( | Promise | ) |
| classfield | ( | PromiseHandler | ) |
| entityclass | ( | PromiseHandler | ) |
| Promise Promise_catch_ | ( | Promise | this, |
| Promise | ret, | ||
| Promise(Promise ret, entity result, entity userdata) | onReject, | ||
| entity | userdata | ||
| ) |
Definition at line 191 of file promise.qc.
References _Promise_then(), func_null(), and unref().
Here is the call graph for this function:| 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) | onResolve, | ||
| 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:Definition at line 13 of file promise.qc.
References _ref_count.
Definition at line 6 of file promise.qc.
References _ref_count.
Referenced by Promise_new_().
Here is the caller graph for this function:| entity unref | ( | Promise | this | ) |
Definition at line 19 of file promise.qc.
References _ref_count, LOG_DEBUGF, NULL, and sourceLoc.
Referenced by Promise_catch_(), Promise_reject(), Promise_resolve(), Promise_sleep(), and Promise_then_().
Here is the caller graph for this function:| void | ( | entity | this | ) |
Definition at line 44 of file promise.qc.
Definition at line 43 of file promise.qc.
| int _ref_count |
Definition at line 3 of file promise.qc.
Referenced by REF(), ref_init(), and unref().
| entity err |
Definition at line 44 of file promise.qc.
Referenced by _Promise_onReject_default(), and waypoint_start_hardwiredlink().
| entity result |
Definition at line 43 of file promise.qc.
Referenced by _Promise_onResolve_default(), MapVote_CheckRules_2(), MapVote_Finished(), PlayerScore_Compare(), Team_GetNumberOfAliveTeams(), Team_GetNumberOfTeamsWithOwnedItems(), TeamBalance_GetAllowedTeams(), TeamScore_Compare(), and W_RandomWeapons().