-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signal with pre aborted #75
Comments
I can't seem to reproduce this. 😕 I tried adding your code as a unit test here, and I see
|
Found out what the problem was... i did use two different versions of the ponyfill This was the only test that failed when i used two different versions: https://github.com/jimmywarting/native-file-system-adapter/blob/1f0e85ea15d228f06ab56e6dc7ec5940b974e775/example/test.js#L389-L403 the rest worked out just fine Here is a minimal reproducible test case import('https://cdn.jsdelivr.net/npm/[email protected]/dist/ponyfill.es2018.mjs').then(async vers300 => {
const vers301 = await import('https://cdn.jsdelivr.net/npm/[email protected]/dist/ponyfill.es2018.mjs')
const rs = new vers300.ReadableStream()
const ws = new vers301.WritableStream()
const abortController = new AbortController()
abortController.abort()
rs.pipeTo(ws, { signal: abortController.signal })
}) ...And a fiddle Here are all the test i run: https://jimmywarting.github.io/native-file-system-adapter/example/test.html |
Really looking forward to #20 being resolved so i can use that instead. |
Aaaah, I see. The classes from two different versions are seemingly compatible: all public properties and public methods are the same, and even the internal property names like Thus, when version 3.0.0's I suppose I could improve
I know, I know. 😛 |
That was half Greek/English to me. but Sound like you got it figured out 👍 possible a old duplicate of #56 that i closed and could never figure out what it was |
In one of my test, this hangs indefinitely when using a abort signal that have already been canceled togheter with polyfill (this don't happen when using natives)
version using 3.0.3 (edit: and 3.0.1 apparently)
The text was updated successfully, but these errors were encountered: