-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
WIP: async read function by default #368
base: v3
Are you sure you want to change the base?
Conversation
drzraf
commented
Oct 5, 2021
- Remove the distinction between sync/async readFileFn in order to use a unified codepath.
- Remove the need for calling the preprocessFinished() function after defining a (now async) preprocess() callback.
Tests are failing, this is related to the fact that once a queue is initialized, it relies upon recursion (so that xhr.load event handler calls the The problem with this is that while event handlers used to be synchronous... they now triggers async' function calls without returning the corresponding Promise to upper levels. |
I'm pretty sure I'd have to rewrite |
Next problem is that XHR But the problem with
We definitely don't want to hold v3 until major browsers supports fetch upload Stream out of the box. But I think v3 uploads are not correct until and revamp of the recursion (regarding |
I agree that there is room for improvement in I'm not sure though, if the synchronous upload tests will ever work with Perhaps the networking related tests should be rewritten with events ( |
Regarding |
unified codepath. - Remove the need for calling the preprocessFinished() function after defining a (now async) preprocess() callback.
398b264
to
3388ab4
Compare
@drzraf looks good, if you want, you can merge this. But please update the docs accordingly |