An utility to enqueue functions and execute them in bbackground, in a serialized way, meaning it is garanteed that no function in this queue will be run in parallel. An enqueued function will always be started after every previous function has finished executing.

Constructor

@:value({ checkInterval : 0.05 })new(checkInterval:Float = 0.05)

Variables

checkInterval:Float

Time interval between each checks to see if there is something to run.

Methods

schedule(fn:() ‑> Void):Void