Skip to content

Throw an exception inside coroutine launched with Dispatchers.Default doesn't crash the app #2398

Closed
@romanandreyvich

Description

@romanandreyvich

I throw an exception inside coroutine launched with Dispatchers.Default and it doesn't crash the app (just print stack trace in console). Works fine if I use Dispatchers.Main instead of Dispatchers.Default.

Here is an example project: https://drive.google.com/file/d/1NzwMU7QStgQuKBNgty1HZei1ZZvQG5Ys/view?usp=sharing

Kotlin: 1.4.20-RC
Coroutines: 1.3.9-native-mt
iOS: 14.1 (iPhone 11, simulator)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions