Giter VIP home page Giter VIP logo

Comments (9)

BonBonSlick avatar BonBonSlick commented on September 28, 2024 1

It is ok, we changed to symfony messenger. Use only your store everything else written from scratch

from service-bus.

prolic avatar prolic commented on September 28, 2024

from service-bus.

BonBonSlick avatar BonBonSlick commented on September 28, 2024

@prolic thank you for your response, i still do not get it.
What should i note?
Can you tell me please how to avoid promises, or use asynchronous?

from service-bus.

prolic avatar prolic commented on September 28, 2024

You can wrap the query bus with your own implementation, so that you wrap the promise and return the real value. This should be very easy to write in a few minutes. I think someone posted the implementation for this already somewhere, but I can't remember.

About the initial question, I think you should use done() and not then() - see https://sergeyzhuk.me/2017/06/16/phpreact-promises/

from service-bus.

fritz-gerneth avatar fritz-gerneth commented on September 28, 2024

reactphp/promise#43 for a similar question. E.g. you have to make the async code yourself. For synchronous code the promise is still synchronous too.

from service-bus.

BonBonSlick avatar BonBonSlick commented on September 28, 2024

@prolic Method 'done' not found in \React\Promise\PromiseInterface less... (Ctrl+F1 Alt+T)
Referenced method is not found in subject class.

from service-bus.

fritz-gerneth avatar fritz-gerneth commented on September 28, 2024

done is only a part of of PromiseInterface since v3. Before this (v2) it was part of the ExtendedPromiseInterface. When you'll return a Promise, it will both interfaces though.

from service-bus.

BonBonSlick avatar BonBonSlick commented on September 28, 2024

Thank you for clarification.
I think it would be nice idea to add some extra examples for bus and event. Sync / async, and how to write tests for these features. Also add more info from https://github.com/reactphp/promise or at least some links to point where people should search.

from service-bus.

prolic avatar prolic commented on September 28, 2024

@BonBonSlick @codeliner wanna provide some docs? otherwise it's just another issue sitting here for years :)

from service-bus.

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.