-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: bump amp to v3 #52
base: master
Are you sure you want to change the base?
Conversation
2e977e0
to
b33e40f
Compare
b33e40f
to
820cea4
Compare
private \Amp\DeferredFuture $ampDeferred; | ||
private PromiseWrapper $promise; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be readonly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the pros of making it read-only? It's a private attribute.
@@ -11,11 +11,9 @@ | |||
*/ | |||
class PromiseWrapper implements Promise | |||
{ | |||
/** @var \Amp\Promise */ | |||
private $ampPromise; | |||
private \Amp\Future $ampPromise; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be readonly now, and the getter removed.
AMPHP use now Fiber via Revolt eventloop.
I made this PR to update the current AMPHP implementation of Tornado to this new version.
I don't think it's a good idea to keep both implementation of AMP (2.6 and 3.0)
Documentaion
https://amphp.org/upgrade
https://revolt.run/fundamentals