run_async¶ mainthread.run_async(code)¶ Runs the given code asynchronously on the main thread. Parameters: code – Code to execute in the main thread.