Skip to main content

plugin_cancel_async

Function plugin_cancel_async 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn plugin_cancel_async( _handle: *mut c_void, _request_id: u64, ) -> bool
Expand description

Cancel a pending async request.

§Status

Not yet implemented. This function is reserved for future async API support. Currently returns false to indicate the operation is not available.

§Planned Behavior

When implemented, this function will:

  1. Attempt to cancel the pending request identified by request_id
  2. Return true if cancellation succeeded, false if the request already completed or was not found
  3. The completion callback will NOT be invoked for cancelled requests

§Safety

When implemented, the following invariants must hold:

  • handle must be a valid handle from plugin_init, or null
  • request_id must be a valid request ID from plugin_call_async

§Returns

true if cancellation was successful, false otherwise.