async
async copied to clipboard
Async utilities and fibers for ReactPHP.
This changeset makes sure we cleanly `stop()` the loop when awaiting a promise without a fiber. This is especially important for test suites and other use cases where you would...
Builds on top of #87, #81 and #76.
Hello, I believe it would be more appropriate for `delay()` to throw a custom exception specific to cancellation (e.g., `CanceledException`) instead of a standard PHP's `\RuntimeException`. This would allow developers...