Function gnunet_sys::GNUNET_SCHEDULER_begin_async_scope[][src]

pub unsafe extern "C" fn GNUNET_SCHEDULER_begin_async_scope(
    aid: *mut GNUNET_AsyncScopeId
)

Change the async scope for the currently executing task and (transitively) for all tasks scheduled by the current task after calling this function. Nested tasks can begin their own nested async scope.

Once the current task is finished, the async scope ID is reset to its previous value.

Must only be called from a running task.

@param aid the asynchronous scope id to enter