Even though async
is already cancelled, it may fail with other Exceptions.
#675
Labels
async
is already cancelled, it may fail with other Exceptions.
#675
I have a question about this test code.
testWithContext()
is a typical code that calls a blocking IO function.In this test, the
job
is cancelled before returning fromsomeBlockingIO()
. As a result, the IOException is just ignored.testAsync()
is just usingasync
instead ofwithContext
. But, its result is different fromtestWithContext()
. Even though thejob
was already cancelled,async
and its parent are failed with IOException.I think if
async
has already been cancelled, it should ignore any other Exceptions. What do you think?The text was updated successfully, but these errors were encountered: