-
Notifications
You must be signed in to change notification settings - Fork 193
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
Support async php runtimes #675
Support async php runtimes #675
Conversation
Codecov Report
@@ Coverage Diff @@
## main #675 +/- ##
============================================
- Coverage 86.07% 84.77% -1.31%
- Complexity 1151 1213 +62
============================================
Files 128 136 +8
Lines 2794 2936 +142
============================================
+ Hits 2405 2489 +84
- Misses 389 447 +58
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Implementation currently incompatible with fibers.
Adds tests for newly added features and fixes covers annotations.
e13c0d8
to
53fc3a1
Compare
- move Swoole context storage to Contrib/Context/Swoole - use self instead of classname
Came across this yesterday, and it looks really interesting for my @reactphp apps. But how do I use this? Is there any documentation or examples how to integrate this with an event loop, or an existing fibers implementation for awaiting promises? |
This PR adds support for async userland implementations (resolves #671, replaces #674):
ScopeBoundCallable
s to preserve the original scope.ScopeBoundPromise
. (Instrumentation returning promises should not::detach()
the scope as promises are chained and not nested.)Additionally includes an experimental context storage to support execute_data switches performed by Swoole, should be moved out of src/Context into a contrib package or similar in the future.
Other changes: