scheduled_tasks¶
-
Code.scheduled_tasks.
run_threaded
(target, daemon=None, args=(), **kwargs)[source]¶ Run a function in a thread.
Allows to run a function in a thread, which is useful for long-running tasks, and it allows the main thread to continue.
Parameters: Returns: threading.Thread
The thread that the function is running in.
Examples
>>> run_threaded(target=Log.Info, daemon=True, args=['Hello, world!']) "Hello, world!"