electrolobzik
12/31/2023, 2:09 PMwhen
block of the regular Executor for Intents?Arkadii Ivanov
12/31/2023, 2:19 PMonIntent<Intent> { intent ->
when (intent) {
// ...
}
}
But I think this is not what you want.
You can also try creating your own API, something like this:
executorFactory(
onIntent = { intent ->
},
onAction = { action ->
}
}
electrolobzik
12/31/2023, 3:16 PMelectrolobzik
12/31/2023, 3:38 PMprivate
accessor from the ExecutorImpl
in CoroutineExecutorDsl
in next versions? It would be much easier to make own DSL then. I can’t just copy it, because it uses internal atomic
. Is it critical to use atomic here? The callbacks
field is written only once in init
function.Arkadii Ivanov
12/31/2023, 3:45 PMArkadii Ivanov
12/31/2023, 3:46 PMelectrolobzik
12/31/2023, 3:55 PMatomic
could be replaced by something like Delegates.notNull
, right?electrolobzik
12/31/2023, 3:55 PMArkadii Ivanov
12/31/2023, 4:01 PMArkadii Ivanov
12/31/2023, 4:02 PMelectrolobzik
12/31/2023, 4:03 PM