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

move go-eventbus here #1681

Merged
merged 65 commits into from
Aug 17, 2022
Merged

move go-eventbus here #1681

merged 65 commits into from
Aug 17, 2022

Conversation

marten-seemann
Copy link
Contributor

@marten-seemann marten-seemann commented Aug 17, 2022

We should merge libp2p/go-eventbus#48 first, there's a flaky test.

Part of #1556.

magik6k and others added 19 commits June 25, 2019 22:07
We only need TypeOf.
Fix close deadlock and Sub type error
1. It doesn't return an error and we weren't checking it anyways.
2. Avoid a goroutine unless we need it.
Issue: We could partially drain and end up with, e.g., a close event missing a
matching open event.
fix: completely drain on close
Ensure that all subscribers see events in the same order. This also ensures that
the subscribers never see the initial "latest" event after some other event.

fixes #16
fix: serialize publishing
Co-Authored-By: Łukasz Magiera <[email protected]>
[DEPENDENT MERGE] Return error rather than panic in Emit
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.

8 participants