-
Notifications
You must be signed in to change notification settings - Fork 401
Handle events asynchronously in the BackgroundProcessor's async variant #1787
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
Handle events asynchronously in the BackgroundProcessor's async variant #1787
Conversation
9579b76
to
91e53c1
Compare
Looks like doc examples now fail to build. |
Slipping to 0.0.113. |
91e53c1
to
d28ee40
Compare
d28ee40
to
d110099
Compare
448300f
to
e752325
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically LGTM.
Needs (hopefully trivial) rebase after #1743 |
8790e45
to
8d837f0
Compare
8d837f0
to
d046480
Compare
Had to rebase on latest to address a small conflict. |
d046480
to
c5c196b
Compare
Codecov ReportBase: 90.82% // Head: 90.82% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #1787 +/- ##
=======================================
Coverage 90.82% 90.82%
=======================================
Files 89 89
Lines 48011 48011
Branches 48011 48011
=======================================
Hits 43604 43604
Misses 4407 4407 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Ended up going with the struct wrappers approach since all of the alternatives we discussed offline didn't work out. |
c5c196b
to
d8df37d
Compare
55b0bc1
to
23cca38
Compare
We introduce a new sealed trait BaseEventHandler that has a blanket implementation for any T. Since the trait cannot be implemented outside of the crate, this allow us to expose specific implementations of InvoicePayer that allow for synchronous and asynchronous event handling.
23cca38
to
d3f1e25
Compare
Linked to the async implementations and rebased on latest to address a small conflict. |
CI fail is #1847, should pass after a re-run. |
Fixes #1674.