Skip to content
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

fix: wait for queued handlers to run before onError #548

Merged
merged 5 commits into from
Feb 12, 2021

Conversation

ronag
Copy link
Member

@ronag ronag commented Feb 12, 2021

When e.g. returning a stream through resolve the user
needs to get a chance to register an 'error' handler
before the stream is destroyed. Otherwise we risk an
unhandled exception.

When e.g. returning a stream through resolve the user
needs to get a chance to register an 'error' handler
before the stream is destroyed. Otherwise we risk an
unhandled exception.
@ronag ronag requested a review from mcollina February 12, 2021 11:45
@codecov-io
Copy link

codecov-io commented Feb 12, 2021

Codecov Report

Merging #548 (b80ace5) into master (3275391) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #548   +/-   ##
=======================================
  Coverage   99.56%   99.57%           
=======================================
  Files          16       16           
  Lines        1386     1408   +22     
=======================================
+ Hits         1380     1402   +22     
  Misses          6        6           
Impacted Files Coverage Δ
lib/core/request.js 100.00% <100.00%> (ø)
lib/agent.js 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3275391...b80ace5. Read the comment docs.

lib/core/request.js Outdated Show resolved Hide resolved
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ronag ronag merged commit 3575ac7 into master Feb 12, 2021
@ronag ronag deleted the onError-queued-handler branch February 12, 2021 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants