2 ms·
Interesting, does the async/await pattern always imply stackless then? Might you or someone else have any resources you could share on stackless vs stackful cor
by bogomipz 7y ago
Interesting, does the async/await pattern always imply stackless then? Might you or someone else have any resources you could share on stackless vs stackful coroutines?
- gpderetta 7y agokinda; using a keyword instead of library call for suspend is done primarily to constrain suspension to a single stack frame (i.e. the calling continuation is not first class, same as for return), hence it is used to enforce the stackless-ness.