fable-compiler / fable-fetch

Fable bindings for Browsers' Fetch API
MIT License
17 stars 8 forks source link

Missing overload for `AbortController#abort` with reason argument #26

Open joprice opened 4 months ago

joprice commented 4 months ago

By default, calling abort on an AbortController results in an error with signal is aborted without reason. There is an overload of abort that allows providing a more informative reason for the cancellation: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/abort_static#reason

MangelMaxime commented 4 months ago

I suppose it should be of the type obj?

The reason why the operation was aborted, which can be any JavaScript value