Joan Colmenero
04/27/2020, 10:12 AMJoan Colmenero
04/27/2020, 10:14 AMCoroutineScope(context + CoroutineExceptionHandler { someError, error -> throw error })
.launch { block(it) }
But on my class I have a val job = Job()
and I want to say that that job is this CoroutineScopeAnimesh Sahu
04/27/2020, 10:23 AMAnimesh Sahu
04/27/2020, 10:24 AMJoan Colmenero
04/27/2020, 10:37 AMthis.job.apply {
CoroutineScope(context + CoroutineExceptionHandler { someError, error -> throw error })
.launch { block(it) }
}
Joan Colmenero
04/27/2020, 10:38 AMAnimesh Sahu
04/27/2020, 10:39 AMAnimesh Sahu
04/27/2020, 10:39 AMJoan Colmenero
04/27/2020, 10:40 AMAnimesh Sahu
04/27/2020, 10:40 AM