Comments (5)
This would be a BC break and can only be done with new major release. But you can also copy paste the query bus implementation and make your desired adjustments, if you need it.
from service-bus.
We hoped to see a promise PSR but async-interop group failed :( If someone has an idea how we can use a promise interface only and make it possible to work with different promise implementations this would be a good reason for a new major version. But switching promise implementation is not an option. Can't you use a react promise to guzzle promise converter?
from service-bus.
I understand - and agree. I was quite confused that there is no Promise PSR yet to be honest.
Can't you use a react promise to guzzle promise converter?
Maybe, I don't know enough about promises to try that.
from service-bus.
from service-bus.
I talked with a friend who explained to me how promises work. Now I see that the example code I linked in the first post will only work if the promise is a FulfilledPromise. So it doesn't make sense to use promises at all since I don't use any non-blocking API to get the results anyway - shame but PHP database API is not really made for that. So what I'll try to do instead is to write a QueryBus which won't use promises at all.
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 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
- What the sense in ReactPHP and it is Promises if QueryBus works synchronously? HOT 9
- 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.