Module main_thread

Source

Structs§

MainThreadAction
MainThreadActionExecutor

Traits§

MainThreadHandler
The trait required for receiving main thread actions

Functions§

execute_on_main_thread
Execute passed function on the main thread. Returns None if already running on the main thread.
execute_on_main_thread_and_wait
Execute passed function on the main thread and wait until the function is finished.