The loom proposal mentions that Loom should theoretically allow continuation cloning. There's an implementation thesis I read that I can't find right now that seems to describe a serialization API for continuations that returns an array of ContinuationStackFrame that allows access to local variables, etc, and allows reinstating a continuation.
With all that in mind, I think multishot might theoretically be possible. Could be something to look into!
The loom proposal mentions that Loom should theoretically allow continuation cloning. There's an implementation thesis I read that I can't find right now that seems to describe a serialization API for continuations that returns an array of
ContinuationStackFrame
that allows access to local variables, etc, and allows reinstating a continuation. With all that in mind, I think multishot might theoretically be possible. Could be something to look into!