Commit d072ae8
committed
docs(coroutine): add explanation for CoroutineContext and its elements
- Describe the parameters of launch/async methods for creating coroutines
- Explain the structure and elements of CoroutineContext
- Detail the purpose of each CoroutineContext element: - Job: coroutine handle/unique identifier
- CoroutineDispatcher: specifies the thread for coroutine execution
- CoroutineName: assigns a name to the coroutine for debugging
- CoroutineExceptionHandler: specifies an exception handler for uncaught exceptions1 parent 26a1cce commit d072ae8
File tree
1 file changed
+24
-0
lines changed- dashboard/src/test/kotlin/com/sinlov/kotlin/playground/coroutine
1 file changed
+24
-0
lines changedLines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments