Skip to content

Commit 93a9b85

Browse files
Merge branch 'master' into coroutines_course_complete
2 parents cb8a566 + 335bccd commit 93a9b85

154 files changed

Lines changed: 2292 additions & 36 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/cancellation/1_cancellation.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import kotlinx.coroutines.delay
55
import kotlinx.coroutines.launch
66
import kotlinx.coroutines.runBlocking
77

8+
// IMPORTANT: The playground functions stopped working with Android Studio Otter,
9+
// that's why I moved them from the "app" gradle module into a standalone Kotlin library
10+
// gradle module called playground.
811
fun main() = runBlocking {
912

1013
val job = launch {

app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/cancellation/2_cooperative_cancellation.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ package com.lukaslechner.coroutineusecasesonandroid.playground.cancellation
22

33
import kotlinx.coroutines.*
44

5+
// IMPORTANT: The playground functions stopped working with Android Studio Otter,
6+
// that's why I moved them from the "app" gradle module into a standalone Kotlin library
7+
// gradle module called playground.
58
fun main() = runBlocking<Unit> {
69

710
val job = launch(Dispatchers.Default) {

app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/coroutinebuilders/1_launch.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import kotlinx.coroutines.delay
55
import kotlinx.coroutines.launch
66
import kotlinx.coroutines.runBlocking
77

8+
// IMPORTANT: The playground functions stopped working with Android Studio Otter,
9+
// that's why I moved them from the "app" gradle module into a standalone Kotlin library
10+
// gradle module called playground.
811
fun main() = runBlocking<Unit> {
912
val job = launch(start = CoroutineStart.LAZY) {
1013
networkRequest()

app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/coroutinebuilders/2_async.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import kotlinx.coroutines.async
44
import kotlinx.coroutines.delay
55
import kotlinx.coroutines.runBlocking
66

7+
// IMPORTANT: The playground functions stopped working with Android Studio Otter,
8+
// that's why I moved them from the "app" gradle module into a standalone Kotlin library
9+
// gradle module called playground.
710
fun main() = runBlocking<Unit> {
811

912
val startTime = System.currentTimeMillis()

app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/exceptionhandling/1_try_catch.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import kotlinx.coroutines.CoroutineScope
44
import kotlinx.coroutines.Job
55
import kotlinx.coroutines.launch
66

7+
// IMPORTANT: The playground functions stopped working with Android Studio Otter,
8+
// that's why I moved them from the "app" gradle module into a standalone Kotlin library
9+
// gradle module called playground.
710
fun main() {
811

912
val scope = CoroutineScope(Job())

app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/exceptionhandling/2_coroutine_exception_handler.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import kotlinx.coroutines.CoroutineScope
55
import kotlinx.coroutines.Job
66
import kotlinx.coroutines.launch
77

8+
// IMPORTANT: The playground functions stopped working with Android Studio Otter,
9+
// that's why I moved them from the "app" gradle module into a standalone Kotlin library
10+
// gradle module called playground.
811
fun main() {
912

1013
val exceptionHandler = CoroutineExceptionHandler { context, exception ->

app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/exceptionhandling/3_try_catch_vs_exception_handler.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ package com.lukaslechner.coroutineusecasesonandroid.playground.exceptionhandling
22

33
import kotlinx.coroutines.*
44

5+
// IMPORTANT: The playground functions stopped working with Android Studio Otter,
6+
// that's why I moved them from the "app" gradle module into a standalone Kotlin library
7+
// gradle module called playground.
58
fun main() {
69

710
val exceptionHandler = CoroutineExceptionHandler { coroutineContext, throwable ->

app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/exceptionhandling/4_launch_and_async.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ package com.lukaslechner.coroutineusecasesonandroid.playground.exceptionhandling
22

33
import kotlinx.coroutines.*
44

5+
// IMPORTANT: The playground functions stopped working with Android Studio Otter,
6+
// that's why I moved them from the "app" gradle module into a standalone Kotlin library
7+
// gradle module called playground.
58
fun main() {
69

710
val exceptionHandler = CoroutineExceptionHandler { context, exception ->

0 commit comments

Comments
 (0)