You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coroutines's runBlocking and runBlockingTest (from kotlinx-coroutines-test artifact) functions already provide a CoroutineScope as a lambda so it would be good to have a version of invoking that works with suspend functions:
Right now to assert that invoking a suspend function throws an exception we have to do something like:
Coroutines's
runBlocking
andrunBlockingTest
(fromkotlinx-coroutines-test
artifact) functions already provide a CoroutineScope as a lambda so it would be good to have a version ofinvoking
that works with suspend functions:I have this working locally and would love to send a PR if this makes sense.
Thanks!
The text was updated successfully, but these errors were encountered: