Struct worker_plus::AbortController
source · pub struct AbortController { /* private fields */ }
Expand description
An interface that allows you to abort in-flight Fetch requests.
Implementations§
source§impl AbortController
impl AbortController
sourcepub fn signal(&self) -> AbortSignal
pub fn signal(&self) -> AbortSignal
Gets a AbortSignal which can be passed to a cancellable operation.
sourcepub fn abort(self)
pub fn abort(self)
Aborts any operation using a AbortSignal created from this controller.
sourcepub fn abort_with_reason(self, reason: impl Into<JsValue>)
pub fn abort_with_reason(self, reason: impl Into<JsValue>)
Aborts any operation using a AbortSignal created from this controller with the provided reason.