Comments (6)
You can see the java eventbus in this link :
http://greenrobot.org/eventbus/documentation/configuration/sticky-events/
from swifteventbus.
@cesarferreira can you give a hint about the best way to add it to SwiftEventBus ? I will work on adding it
from swifteventbus.
+1
from swifteventbus.
post sticky is very useful plz add it
from swifteventbus.
I don't have the time right now, can you please open a pull request?
from swifteventbus.
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
from swifteventbus.
Related Issues (20)
- why the versoin is also 2.2.0 HOT 3
- should I call SwiftEventBus.unregister(self) in deinit HOT 1
- Your 3.0.0 tag has the wrong podspec version (2.2.0) HOT 1
- can't get the newest version in the standard way
- How to create an new instance HOT 1
- Conflicting overloading functions HOT 2
- Publish 3.0.1 to Cocoapods HOT 1
- Update swift version to 5
- Swift Package Manager HOT 5
- Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.1 compiler: HOT 3
- Static.instance.cache is not clearing automatically unless unregister the target
- compiler warning HOT 1
- Check if event is already registered HOT 4
- Cocoapods downloads 5.0.0 instead of the latest
- Module compiled with Swift 5.3.2 cannot be imported by the Swift 5.4.2 compiler HOT 2
- Update podspec to 5.1.0 HOT 1
- event only triggered once
- Could you add the SWIFT_VERSION attribute in at least one of the targets? HOT 1
- Why hasn't it been updated in years
- Whether macOS can be supported?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swifteventbus.