Giter Club home page Giter Club logo

actix-broker's People

Contributors

chris-ricketts avatar jthacker avatar madjul avatar najamelan avatar ryankurte avatar zacps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

actix-broker's Issues

Update to actix 0.8.2 and actix-web 1.0.0-rc

Hi,

With actix-web getting stable and using actix 0.8.2, actix-broker can no longer be used with the latest version since it depends on actix 0.7.9.

Bumping the version to actix 0.8.2 and updating the examples should be straightforward. I'll submit a PR.

Provide a method to broadcast messages from outside an actor

Motivation:
The vast majority of my actix-web application is implemented as actors, however there are some parts which are more convenient to implement as normal or async methods.

I want to be able to notify running actors of something that happened in a normal method, but there is no actor context.

Workaround:
Create a sentinel actor that sends the message (generic version untested):

struct Notifier<T>(T);

impl<T: Message> Actor for Notifier<T> {
    type Context = Context<Self>;

    fn started(&mut self, ctx: &mut Self::Context) {
        self.issue_system_async(self.0);
        ctx.stop();
    }
}

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.