Methods
-
(static) createWorker(name, verbose)
-
Factory function to create a Blob with a script from
rlLogicTimer
and a Worker to run the generated script in a separate thread.Parameters:
Name Type Description name
string the name to use for the rlLogicTimer inside the Worker
verbose
boolean set to true to output status messages to the console
Returns:
a Worker object, ready to be used with
postMessage
commands for controlling the containedrlLogicTimer
| set the onmessage property to define thecallback