byond - Modules - TypesDefine Details

code/__DEFINES/callbacks.dm

CALLBACKA shorthand for the callback datum, documented here
INVOKE_NEXT_TICKShorthand for invoking a proc next tick
MAKE_SPAWN_ACT_LIKE_WAITFORPer the DM reference, spawn(-1) will execute the spawned code immediately until a block is met.
ASYNCCreate a codeblock that will not block the callstack if a block is met.
VERB_CALLBACKlike CALLBACK but specifically for verb callbacks
VARSET_CALLBACKSet a var to x in y time
VARSET_WEAK_CALLBACKSame 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