dev • api • cat • post

Defered Routines

GB.CheckPost Calls deferred routines if needed.
GB.Post Post a defered routine.


The interpreter or the components sometime need to defer the execution of a piece of code, because executing it immediately would be dangerous. The GB.Post routine is used for posting a defered routine.

As the defered piece of code is executed at the next event loop iteration, components that implement the event loop must use the GB.CheckPost routine.