> nothing about how it works is built into the language
I think the state machine required to yield, async & await is baked into the language.
But yes, one can implement the Future trait to take finer control.
I think the state machine required to yield, async & await is baked into the language.
But yes, one can implement the Future trait to take finer control.
the popular libraries like tokio are using something akin to green threads, though people picky about definitions may not agree to that nomenclature.