Comments (9)
It is ok, we changed to symfony messenger. Use only your store everything else written from scratch
from service-bus.
from service-bus.
@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.
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.
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.
@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.
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.
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.
@BonBonSlick @codeliner wanna provide some docs? otherwise it's just another issue sitting here for years :)
from service-bus.
Related Issues (20)
- Improve message producer documentation HOT 1
- UnauthorizedException not informative HOT 3
- How to deal with promises HOT 2
- [RFC] Return async-interop/promise from QueryBus HOT 2
- OnEventInvokeStrategyPlugin broken
- Get rid of the AbstractInvokeStrategy HOT 3
- Proposal: Add interfaces for classes when using an InvokeStrategy HOT 24
- QueryBus testing HOT 9
- Servicelocator deletes listeners
- Use LazyPromise? HOT 6
- Exception in event listener stops propagating event to other registered listeners HOT 2
- Bug in OnEventStrategy
- QueryBus with Guzzle/Promises? HOT 5
- QueryBus returns null with FinalizeGuard plugin included HOT 3
- exchange PromiseInterface for ExtendedPromiseInterface HOT 7
- CommanHandler is a FQCN HOT 2
- Process Manager Plugin HOT 4
- Command bus Question HOT 5
- The right way to use Queries? HOT 3
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 service-bus.