| 61 | } |
| 62 | |
| 63 | pub struct Executor { |
| 64 | tasks: BTreeMap<TaskId, Task>, |
| 65 | task_queue: Arc<ArrayQueue<TaskId>>, |
| 66 | spawn_queue: Arc<ArrayQueue<Task>>, |
| 67 | waker_cache: BTreeMap<TaskId, Waker>, |
| 68 | } |
| 69 | pub fn qpush(queue: Arc<ArrayQueue<Task>>, f: impl Future<Output = ()> + 'static) { |
| 70 | queue.push(Task::new(f)); |
| 71 | } |
nothing calls this directly
no outgoing calls
no test coverage detected