Skip to content

Fix UnhandledPromiseRejectionWarning in result #258

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jun 27, 2017

Conversation

lutovich
Copy link
Contributor

It is possible to subscribe to Result with an observer which consists of three functions: onNext, onError and onCompleted. All three are optional. However result was not handling absence of onCompleted correctly which resulted in a failed promise and UnhandledPromiseRejectionWarning.

Fixes #257

It is possible to subscribe to `Result` with an observer which consists
of three functions: `onNext`, `onError` and `onCompleted`. All three
are optional. However result was not handling absence of `onCompleted`
correctly which resulted in a failed promise and
`UnhandledPromiseRejectionWarning`.
@praveenag praveenag merged commit be4ffad into neo4j:1.4 Jun 27, 2017
@lutovich lutovich deleted the 1.4-handle-absent-onCompleted branch June 29, 2017 08:43
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants