_fuchsia_async_staticlib_rustc_static

Function fasync_executor_quit

Source
#[no_mangle]
pub unsafe extern "C" fn fasync_executor_quit(executor: *mut Executor)
Expand description

Signals the given executor to shut down.

This function does not wait for the executor to finish shutting down. After calling this function, running tasks may continue to be processed until the executor processes the shutdown signal. Once the executor shuts down, fasync_executor_run_singlethreaded will return.

§Panics

Panics if the given executor is not currently running.

§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.