Coder Social home page Coder Social logo

Comments (6)

hamedsilver avatar hamedsilver commented on May 24, 2024 2

You can see the java eventbus in this link :
http://greenrobot.org/eventbus/documentation/configuration/sticky-events/

from swifteventbus.

iballan avatar iballan commented on May 24, 2024 1

@cesarferreira can you give a hint about the best way to add it to SwiftEventBus ? I will work on adding it

from swifteventbus.

Blankeer avatar Blankeer commented on May 24, 2024

+1

from swifteventbus.

hamedsilver avatar hamedsilver commented on May 24, 2024

post sticky is very useful plz add it

from swifteventbus.

cesarferreira avatar cesarferreira commented on May 24, 2024

I don't have the time right now, can you please open a pull request?

from swifteventbus.

hamedsilver avatar hamedsilver commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.