|
|
|
|
|
by hathawsh
901 days ago
|
|
Exactly. The way I think about it, the "async" keyword transforms function code so that local variables are no longer bound to the stack, making it possible to pause function execution (using "await") and resume it at an arbitrary time. Performing that transformation manually is a fair amount of work and it's prone to errors, but that's what we did when we wrote cooperatively multitasked code. |
|
That's my point, we still do that. And based on your phrasing we're forgetting it :)