_fuchsia_async_staticlib_rustc_static

Function fasync_executor_destroy

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

Drops the given executor.

This will block the current thread until all tasks that are currently spawned onto the executor have been dropped. After calling this function, executor no longer points to an initialized Executor.

ยงSafety

executor must be non-null, properly aligned, and point to an initialized Executor that is not currently running. To guarantee these properties, executor should be a pointer returned from fasync_executor_create that has not yet been passed to fasync_executor_destroy and is not currently running in a call to fasync_executor_run_singlethreaded.