-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Some codes won't be executed after throwing an exception #686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please clarify what behaviour are you expecting here? |
If i execute multiple |
I was excepting the following result.
|
The current behaviour is expected.
You have two options to have a desired behaviour:
|
I get this. But I do not expect the result of this should result in
but some other exception that will tell me that the parent job is in failed state. |
Yes, this is slightly counter-intuitive. But consider following code:
Do you expect to Now assume there is a race between lines 2 and 3 (or just swap these lines). Should behaviour be different in that case? The current answer is "no", though we can consider reworking this part |
Code:
Result:
So, I have no idea wtf is going on.
Kotlin 1.2.71
Coroutine 0.30.2
Java 1.8.0_181
The text was updated successfully, but these errors were encountered: