3 ms·
It references the function return type: Colored = Promise<T> Colorless = T In "colorless" async/await, async functions are implicit (no async keyword), and w
by justsomeuser 5y ago
It references the function return type:
Colored = Promise<T>
Colorless = T
In "colorless" async/await, async functions are implicit (no async keyword), and when called, the compiler auto-unwraps the promise, so everything looks like "sync" code but any function stack could "save and resume" at an "async point".
- bradgessler 5y agoToo bad the Zeitgeist didn't land on "Typed" vs "Untyped".