|
In any case, 10K+ coroutines are not the best use case for Coco.
While it's convenient to be able to yield and resume to C code,
the C stacks are rather costly. You might be better off in the
long term to convert to non-blocking C functions and wrap some Lua
code around them which does the yield instead.