I need to let the threads execute in parallel, but...
# coroutines
s
I need to let the threads execute in parallel, but the whole time cost will be 1s. When use
delay(1000)
, the code will finish in 1s. But use
sleep
, the code may execute in a long time