|
|
|
|
|
by steveklabnik
893 days ago
|
|
I'm gonna have to mull over "implement generators using cooperative multitasking" a bit :) > i think the difference if you were to implement this same executor with rust generators is just that you probably wouldn't make the linked list of all tasks an intrusive list? You still could, and IIRC tokio uses an intrusive linked list to keep track of tasks. There's no specific requirements for how you keep track of tasks, or even a standardized API for executors, which is why you'll hear people talk about why they want "to be generic over runtimes" and similar. |
|