-
Notifications
You must be signed in to change notification settings - Fork 104
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
How to send sticky events? #33
Comments
+1 |
post sticky is very useful plz add it |
I don't have the time right now, can you please open a pull request? |
@cesarferreira can you give a hint about the best way to add it to SwiftEventBus ? I will work on adding it |
Some events carry information that is of interest after the event is posted. For example, an event signals that some initialization is complete. Or if you have some sensor or location data and you want to hold on the most recent values. Instead of implementing your own caching, you can use sticky events. So EventBus keeps the last sticky event of a certain type in memory. Then the sticky event can be delivered to subscribers or queried explicitly. Thus, you don’t need any special logic to consider already available data |
You can see the java eventbus in this link : |
No description provided.
The text was updated successfully, but these errors were encountered: