Skip to content

Commit 7a736f8

Browse files
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

7 files changed

+1106
-197
lines changed

0 commit comments

Comments
 (0)