Commit 7a736f8
committed
feat: make Scheduler thread-safe
schedule() can now be called from any thread and will move tasks to the event loop.
This enables receiving I/O notification from "sidecar runtimes" like async-compat, for
instance. pthread_kill(main_thread, SIGIO) is used to interrupt epoll when called
outside of the event loop thread.
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 7a736f8
File tree
7 files changed
+1106
-197
lines changed- examples
- src/async_
7 files changed
+1106
-197
lines changed
0 commit comments