I just got caught with a surprise on usage of `wit...
# coroutines
b
I just got caught with a surprise on usage of
withTimeout
and
delay
. Delay has a guard condition where if
delay == 0
it returns without suspending. As a result,
withTimeout
doesn’t have a suspend point to cancel. I can obvious code around this in my local example, but is this expected behavior? I expected
delay(0)
to basically be the equivalent of
yield()