# mainthread module

`binaryninja.mainthread.execute_on_main_thread`(func) |
`binaryninja.mainthread.execute_on_main_thread_and_wait`(func) |
`binaryninja.mainthread.get_worker_thread_count`() |
`binaryninja.mainthread.set_worker_thread_count`(count) |
`binaryninja.mainthread.worker_enqueue`(func) |
`binaryninja.mainthread.worker_interactive_enqueue`(func) |
`binaryninja.mainthread.worker_priority_enqueue`(func) |

`binaryninja.mainthread.``execute_on_main_thread`(func)

`binaryninja.mainthread.``execute_on_main_thread_and_wait`(func)

`binaryninja.mainthread.``get_worker_thread_count`()

`binaryninja.mainthread.``set_worker_thread_count`(count)

`binaryninja.mainthread.``worker_enqueue`(func)

`binaryninja.mainthread.``worker_interactive_enqueue`(func)

`binaryninja.mainthread.``worker_priority_enqueue`(func)