pyra.threads¶
Functions related to threading.
Routine Listings¶
- run_in_threadmethod
Alias of the built in method threading.Thread.
Examples¶
>>> from pyra import config, threads, tray_icon
>>> config_object = config.create_config(config_file='config.ini')
>>> tray_icon.icon = tray_icon.tray_initialize()
>>> threads.run_in_thread(target=tray_icon.tray_run, name='pystray', daemon=True).start()
>>> from pyra import config, threads, webapp
>>> config_object = config.create_config(config_file='config.ini')
>>> threads.run_in_thread(target=webapp.start_webapp, name='Flask', daemon=True).start()
* Serving Flask app 'pyra.webapp' (lazy loading)
...
* Running on http://.../ (Press CTRL+C to quit)