run_sync¶
- mainthread.run_sync(code)¶
Runs the given code asynchronously on the main thread. Supports return values as opposed to
run_async()- Parameters:
code – Code to execute in the main thread.
Runs the given code asynchronously on the main thread.
Supports return values as opposed to run_async()
code – Code to execute in the main thread.