wasm-bindgen icon indicating copy to clipboard operation
wasm-bindgen copied to clipboard

Support abort(reason) call on AbortController.

Open gxtaillon opened this issue 3 years ago • 0 comments

Motivation

Provide accurate error message when aborting fetch programmatically without user input.

Proposed Solution

Support abort(reason) call on AbortController.

Alternatives

None known to me.

Additional Context

Currently only abort() is supported. When using abort() on Chrome, cancelled fetch() calls return AbortError: The user aborted a request.. This is confusing when triggered without user input, for instance by timeouting early, or preemptively on navigation.

Best, gxt

gxtaillon avatar May 07 '22 20:05 gxtaillon