/tg/ Station 13 - Modules - TypesProc Details

circuit_component

Procs

add_callbackAdds a callback to be invoked when the next fire() is done. Used by the integrated circuit system.
execute_instant_runInstantly executes the stored callbacks and does this in a loop until there are no stored callbacks or it hits tick limit.
queue_instant_runQueues any callbacks to be executed instantly instead of using the subsystem.

Proc Details

add_callback

Adds a callback to be invoked when the next fire() is done. Used by the integrated circuit system.

Prevents race conditions as it acts like a queue system. Those that registered first will be executed first and those registered last will be executed last.

execute_instant_run

Instantly executes the stored callbacks and does this in a loop until there are no stored callbacks or it hits tick limit.

Returns a list containing any values added by any input port.

queue_instant_run

Queues any callbacks to be executed instantly instead of using the subsystem.