Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Alternative AbortController support (#54) #137
Conversation
|
Any movement on this? What can we do to merge this PR? One thing that is missing here is check if signal is already aborted so unfetch can reject early, and throwing try {
abortError = new DOMException('Aborted', 'AbortError');
} catch (err) {
abortError = new Error('Aborted');
abortError.name = 'AbortError';
} |
Resolves #54.
Alternative solution to #68.
My implementation differs in the following ways:
I polyfilled AbortController and AbortSignal in tests, because they do not exist in node env.
To consider:
Build: