#[no_mangle]
pub unsafe extern "C" fn fasync_executor_run_singlethreaded(
executor: *mut Executor,
)
Expand description
Runs the given executor in a single-threaded fashion.
This will block the calling thread until the executor is quit with
fasync_executor_quit
or destroyed with fasync_executor_destroy
. Note
that after calling this function, executor
may be a dangling pointer.
§Panics
Panics if the given executor is already running, for example if another thread is already calling this function.
§Safety
executor
must be non-null, properly aligned, and point to an initialized
Executor
. To guarantee these properties, executor
should be a pointer
returned from fasync_executor_create
that has not yet been passed to
fasync_executor_destroy
.