code/__DEFINES/callbacks.dm

CALLBACK | A shorthand for the callback datum, documented here |
---|---|
INVOKE_NEXT_TICK | Shorthand for invoking a proc next tick |
MAKE_SPAWN_ACT_LIKE_WAITFOR | Per the DM reference, spawn(-1) will execute the spawned code immediately until a block is met. |
ASYNC | Create a codeblock that will not block the callstack if a block is met. |
VERB_CALLBACK | like CALLBACK but specifically for verb callbacks |
VARSET_CALLBACK | Set a var to x in y time |
VARSET_WEAK_CALLBACK | Same as VARSET_CALLBACK, but uses a weakref to the datum. Use this if the timer is exceptionally long. |
Define Details
ASYNC
Create a codeblock that will not block the callstack if a block is met.
CALLBACK
A shorthand for the callback datum, documented here
INVOKE_NEXT_TICK
Shorthand for invoking a proc next tick
MAKE_SPAWN_ACT_LIKE_WAITFOR
Per the DM reference, spawn(-1) will execute the spawned code immediately until a block is met.
VARSET_CALLBACK
Set a var to x in y time
VARSET_WEAK_CALLBACK
Same as VARSET_CALLBACK, but uses a weakref to the datum. Use this if the timer is exceptionally long.
VERB_CALLBACK
like CALLBACK but specifically for verb callbacks