Skip to content

Commit

Permalink
getOrAwaitValue increase timeout 100->500
Browse files Browse the repository at this point in the history
  • Loading branch information
kimdohun0104 committed Jun 8, 2021
1 parent 7de859e commit 232a33c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import kotlinx.coroutines.withTimeout
*/
internal suspend fun <T> LiveData<T>.getOrAwaitValue(): T? =
try {
withTimeout(100) {
withTimeout(500) {
this@getOrAwaitValue.asFlow().first()
}
} catch (e: TimeoutCancellationException) {
Expand Down

0 comments on commit 232a33c

Please sign in to comment.