From 055ce0431340f5ce0a020c082f3a4db49e9f5dac Mon Sep 17 00:00:00 2001 From: Dohun Kim Date: Tue, 8 Jun 2021 16:29:50 +0900 Subject: [PATCH] Update getOrAwaitValue.kt --- .../dohun/kim/gatabuta/gatabuta_livedata/getOrAwaitValue.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatabuta-livedata/src/main/java/dohun/kim/gatabuta/gatabuta_livedata/getOrAwaitValue.kt b/gatabuta-livedata/src/main/java/dohun/kim/gatabuta/gatabuta_livedata/getOrAwaitValue.kt index a8684c0..82c7e85 100644 --- a/gatabuta-livedata/src/main/java/dohun/kim/gatabuta/gatabuta_livedata/getOrAwaitValue.kt +++ b/gatabuta-livedata/src/main/java/dohun/kim/gatabuta/gatabuta_livedata/getOrAwaitValue.kt @@ -14,7 +14,7 @@ import kotlinx.coroutines.withTimeout */ internal suspend fun LiveData.getOrAwaitValue(): T? = try { - withTimeout(500) { + withTimeout(200) { this@getOrAwaitValue.asFlow().first() } } catch (e: TimeoutCancellationException) {