⁘ common.time

DelayedCall

Allows to simply Schedule or Cancel a call on TIME.NEXT_TICK. Useful to debounce function calls that are knowns to happen often withing a single frame yet only useful/more performant if called once after a batch of updates.)

go to → Members

Constructor

new DelayedCall()

Members

callback :function

This delayed' call callback

read-onlyscheduled :boolean

Whether this DelayedCall is scheduled or not

Methods

Cancel()

Cancel the delayed call, if it was scheduled.

Clear()

TODO

Schedule()

Schedule this DelayedCall's callback to be called on TIME.NEXT_TICK