Crates.io | wta-executor |
lib.rs | wta-executor |
version | 0.1.0 |
source | src |
created_at | 2022-05-09 08:27:17.09637 |
updated_at | 2022-05-09 08:27:17.09637 |
description | Executor for the what-the-async runtime |
homepage | |
repository | https://github.com/conradludgate/what-the-async |
max_upload_size | |
id | 583085 |
size | 5,433 |
This is a simple executor. There is a single Arc<Executor>
type that can be shared between many worker threads.
Each worker will continuously run executor.poll_once()
which will
The task will be polled with a context that will reference that task (using a Mutex<Option<Task>>
),
and a copy of the executor.
Calling wake on this context will then call executor.wake(task)
. If there are threads sleeping, one will be woken up.