Closed timdp closed 5 years ago
Right, this is only used internally now to implement timeout. I'm building full support as I write this.
Awesome! :+1:
:tada: This issue has been resolved in version 2.2.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
So I'd like to make my
fetch
calls cancelable by passing anAbortSignal
.The fetch-h2 docs link to
AbortSignal
, suggesting that thesignal
option is supported. However, looking at the code:I only see a few statements that synchronously check
signal.aborted
. That's only part of the API. I was also expecting asignal.addEventListener('abort', fn)
so thatfn
gets triggered whenAbortController#abort()
is called.Neither
AbortSignal
norAbortController
is actually exposed by the package. I suppose I could polyfill them.Long story short, I guess this feature is not supported yet? :slightly_smiling_face: