Does the JVM backend ever generate calls to `Conti...
# compiler
y
Does the JVM backend ever generate calls to
ContinuationImpl(continuation, context)
? If not, why isn't that constructor
private
?
y
I think? that
ContinuationImpl
is duplicated in JVM and Native, so the usages you've highlighted are only for Native.
I do always wonder why these classes are duplicated. I know JS and WasmJS has a different (also duplicated) implementation. Probably historical reasons? In fact, the JS implementation is also stranger, for reasons I don't quite understand. It uses fields to call its equivalent of
invokeSuspend
, and it doesn't use Result for those fields for some reason