()
| 11 | |
| 12 | impl SimpleExecutor { |
| 13 | pub fn new() -> SimpleExecutor { |
| 14 | SimpleExecutor { |
| 15 | task_queue: VecDeque::new(), |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | pub fn spawn(&mut self, task: Task) { |
| 20 | self.task_queue.push_back(task) |
nothing calls this directly
no outgoing calls
no test coverage detected