neworldlt
10/05/2020, 9:11 AMval foo = runCatching { bar() }.getOrNull() // or similar try-catch block
gildor
10/05/2020, 9:12 AMgildor
10/05/2020, 9:13 AMneworldlt
10/05/2020, 9:14 AMrunCatching()
with failback is illegal inside coroutinesgildor
10/05/2020, 9:14 AMgildor
10/05/2020, 9:14 AMneworldlt
10/05/2020, 9:18 AMgildor
10/05/2020, 9:19 AMgildor
10/05/2020, 9:20 AMgildor
10/05/2020, 9:20 AMneworldlt
10/05/2020, 9:23 AMneworldlt
10/05/2020, 9:25 AMrunCatching
and try
versions only for coroutines with a lint check which do not permit the original version to be used in coroutinesneworldlt
10/05/2020, 9:28 AMstreetsofboston
10/05/2020, 11:44 AMallan.conda
11/02/2020, 2:47 AMstreetsofboston
11/02/2020, 2:48 AM