Jörg Winter
07/05/2023, 9:36 AMsimon.vergauwen
07/05/2023, 11:37 AMsuspend
is so that we can allow suspend
functions inside log
, doUntil
, etc.
Schedule doesn't actually use any suspension inside, so if your Schedule is suspension free and your code inside retry
or repeat
is suspension free than using runBlocking
will not actually block IIRC.currentCoroutineContext()
but that doesn't actually suspend. There is no recommended way, since unrelated changes in the code might break this but there should be no problem with runBlocking
actually blocking in the case you're describing.