Programming-Language-Benchmarks
Programming-Language-Benchmarks copied to clipboard
speed up javascript generator
Await is not necessary in generator.
This is coroutine benchmark, usage of generator aka simi-coroutine is not allowed
This is coroutine benchmark, usage of generator aka simi-coroutine is not allowed
But originally coroutine execution should not return at the end of body. So usage of yield value is the feature of generator. AsyncGenerator without await in the body doesn't have any difference from basic generator.