stlab 2.3.0
Modern, modular C++ algorithms, data structures, and concurrency primitives
Loading...
Searching...
No Matches
main_executor

Detailed Description

Main-thread / UI-thread executor (Qt, libdispatch, Emscripten, etc.).

Variables

constexpr auto stlab::main_executor
 Runs void() noexcept tasks on the process main thread (Qt, libdispatch, or Emscripten as configured).

Variable Documentation

◆ main_executor

auto stlab::main_executor
inlineconstexpr

Runs void() noexcept tasks on the process main thread (Qt, libdispatch, or Emscripten as configured).

Submitted tasks run in order on the main loop. The main loop itself outlives this executor object; pending tasks are not canceled by executor destruction.