Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract and export a standalone
TaskRunner
This commit extracts the `TaskRunner` interface from the `current_thread` module to a standalone interface and also reexports it from the `executor` module. This is done with #675 as the primary motivation, namely accommodating crates using `CurrentThread` on foreign event loops like glib. In this situation Rust (and associated code) can't request to block (aka with `run_with_sleep`) and as a result need a nonblocking method (`TaskRunner::poll` here) instead. The `current_thread` module was then reimplemented in terms of `TaskRunner` to ensure there's no extra duplication.
- Loading branch information