Skip to content

Commit c2d54f4

Browse files
committed
feat: add thread-safe Scheduler for spawn using ngx_notify
schedule() can now be called from any thread and will move tasks to the event loop thread using ngx_notify (ngx_event_actions.notify). This enables receiving I/O notification from "sidecar runtimes" like async-compat, and requires less unsafe. The async example has been rewritten to use async_::spawn, demonstrating usage of reqwest and hyper clients wrapped in Compat to provide a tokio runtime environment while using the async_ Scheduler as executor.
1 parent 1b802cd commit c2d54f4

File tree

6 files changed

+1063
-206
lines changed

6 files changed

+1063
-206
lines changed

0 commit comments

Comments
 (0)