voddan
04/25/2021, 9:09 AMbox.onCollision {
view.tween(...)
}
How do I pass the coroutine context there? Is there something like box.onCollisionSuspended {..}
?launchImmediately(Dispatchers.Default) {
works, I guessDeactivated User
04/26/2021, 10:52 AMDispatchers.Default
since KorGE has its own dispatcher, and that would use a different thread and you might have issues on some targets, you should propagate the coroutineContext of either the views, or a scene (that would handle its lifecycle)voddan
05/02/2021, 2:43 PMviews
singleton from a random place in the program?Deactivated User
05/02/2021, 4:40 PMviews()
the coroutine context if propagated properly should have the injector referenced