2

With coroutine I mean a subroutine that can be paused and resumed from another subroutine; preserving its internal state across pauses and resumes.

For example, a feature similar to:

  • Javascript's function* & yield
  • C++'s co_await & co_yield

Is there any language that supports something like this AND can compile to EVM code?

1 Answer 1

0

As of jan 2022, there is no EVM compiler that supports generator functions.

Fingers crossed for the future

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.