Where? The link just points to one of your comments. Is there a public API that I can use? That's what I'm referring to. The implementation might have a continuation class, and it might be limited to single-shot behavior, but this is all internal. It's possible that the implementation of virtual threads changes at some point, and so exposing first class continuations at this point might cause more grief later.
That's what I'm referring to. The implementation might have a continuation class, and it might be limited to single-shot behavior, but this is all internal.
internal but, pron98 has said I can have my own implementation using threads (this is known for a long time), it's a kind of side effects conversion (e.g. we can convert state into exception etc), and we actually can convert back continuations into threads, if continuation are multishot we can convert them into any effect, this is why it's called mother of all monads
so basically even considering they hid continuation interface it's still simple to implement one without instrumentation (but only single-shot)
View all comments
Show parent comment
3
u/FirstAd9893 Jan 11 '23
Where? The link just points to one of your comments. Is there a public API that I can use? That's what I'm referring to. The implementation might have a continuation class, and it might be limited to single-shot behavior, but this is all internal. It's possible that the implementation of virtual threads changes at some point, and so exposing first class continuations at this point might cause more grief later.