Youssef Shoaib [MOD]
05/21/2024, 11:16 PMHowever, multi-shot continuations can be implemented as a separate library by suspending coroutine with low-level coroutine intrinsics and cloning the state of the coroutine that is captured in continuation, so that its clone can be resumed again.Is that actually possible? My understanding is that nasty reflection tricks are needed (which make the code not multiplatform compatible either). Is there an example of this out there? If it needs reflection tricks and all that, could a
CopyableContinuation
interface be provided that allows such a thing?Youssef Shoaib [MOD]
05/21/2024, 11:17 PMSam
05/22/2024, 5:33 AMYoussef Shoaib [MOD]
05/22/2024, 10:12 AM