Goonstation 13 - Modules - TypesDefine Details

_std/promises.dm

/datum/interruptible_sleepRepresents something akin to a sleep() call that can be interrupted.
INTERRUPT_SLEEPInterrupts an /datum/interruptible_sleep. For best performance make sure there are as few references to this datum as possible.
/datum/promiseRepresents a promised value that can then be fulfilled (likely by some other execution context). Supports waiting for fulfillment.

Define Details

INTERRUPT_SLEEP

Interrupts an /datum/interruptible_sleep. For best performance make sure there are as few references to this datum as possible.

@param ISLEEP The sleep to interrupt.