How to use the solaar.async.TaskRunner function in solaar

To help you get started, we’ve selected a few solaar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pwr-Solaar / Solaar / lib / solaar / ui / __init__.py View on Github external
def _startup(app, startup_hook):
	if _log.isEnabledFor(_DEBUG):
		_log.debug("startup registered=%s, remote=%s", app.get_is_registered(), app.get_is_remote())

	from solaar.async import TaskRunner as _TaskRunner
	global _task_runner
	_task_runner = _TaskRunner('AsyncUI')
	_task_runner.start()

	notify.init()
	tray.init(lambda _ignore: window.destroy())
	window.init()

	startup_hook()