mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-12-03 10:07:44 +01:00
Cleanup
This commit is contained in:
parent
e80bebfc4c
commit
8462005af4
@ -73,11 +73,11 @@ This allows full compatibility with [amphp](https://amphp.org), [PSL](https://gi
|
|||||||
|
|
||||||
Traits annotated with `#[php_impl]` can freely expose any async function, using `await` and any async Rust library.
|
Traits annotated with `#[php_impl]` can freely expose any async function, using `await` and any async Rust library.
|
||||||
|
|
||||||
Make sure to also expose the `php_tokio::EventLoop::init` and `php_tokio::EventLoop::wakeup` functions to PHP in order to initialize the event loop, as specified in the full example [here &rauquo;](#async-example).
|
Make sure to also expose the `php_tokio::EventLoop::init` and `php_tokio::EventLoop::wakeup` functions to PHP in order to initialize the event loop, as specified in the full example [here »](#async-example).
|
||||||
|
|
||||||
Also, make sure to invoke `EventLoop::shutdown` in the request shutdown handler to clean up the tokio event loop before finishing the request.
|
Also, make sure to invoke `EventLoop::shutdown` in the request shutdown handler to clean up the tokio event loop before finishing the request.
|
||||||
|
|
||||||
See [here &rauquo;](#async-example) for the full example.
|
See [here »](#async-example) for the full example.
|
||||||
|
|
||||||
## Constants
|
## Constants
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user