Skip to main content

cancel_token_cancel

Function cancel_token_cancel 

Source
pub unsafe fn cancel_token_cancel(token: *mut FfiCancelToken)
Expand description

The body of {prefix}_cancel_token_cancel: request cancellation and wake every future waiting on the token. Idempotent; a null token is a no-op.

§Safety

token must be null or a token from cancel_token_create whose consumer reference hasn’t been destroyed.