yusuf3000
03/21/2019, 7:51 AMCoroutineContext from iOS and inject that into a kotlin/native class?gildor
03/21/2019, 7:52 AMgildor
03/21/2019, 7:52 AMyusuf3000
03/21/2019, 7:53 AMgildor
03/21/2019, 7:56 AMyusuf3000
03/21/2019, 9:11 AMCoroutineContext in it’s init:
class Calculation(
    val coroutineContext: CoroutineContext)
and we have a method in the class which also performs the following:
if (runningJob?.isActive != true) {
            runningJob = launch(coroutineContext) {
                update(value)
            }
        }yusuf3000
03/21/2019, 9:12 AMyusuf3000
03/21/2019, 9:13 AMCoroutineContext from the ios side - is this the right approach?svyatoslav.scherbina
03/21/2019, 9:33 AMCoroutineContext and then calling it from the iOS side?yusuf3000
03/21/2019, 9:35 AMval coroutineContext: CoroutineContext = newSingleThreadContext("CalculationThread") but it’s not available in kotlin-commonyusuf3000
03/21/2019, 9:35 AMnewSingleThreadContextsvyatoslav.scherbina
03/21/2019, 9:36 AMnewSingleThreadContext is not available, please try other options to create new context.