Hi DM -
In one of my JS scripts for Synchronet, there is something that I would
I did see the queue class, which mentions that it's used for inter-thread/module communications, but I didn't see any functions for running something in a separate thread. The closest I could think of, looking at the docs, is to use load() to load & execute another JS script
in the background - is there a better way to do it?
load(true,...) is the only way to start background thread. For something to happen periodically, that's probably not the best way to achieve that. Inste have a main loop (e.g. watching for keyboard input or whatever is equivalent for your script) and have it periodically perform the desired task based on elapsed time.
|Location:||Riverside County, California|
|Nodes:||15 (0 / 15)|