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