Hi, I'm having trouble grasping coroutine dispatch...
# coroutines
e
Hi, I'm having trouble grasping coroutine dispatchers/contexts and need some guidance. The use case is a game server in which continuations can be associated with "thinkers"/"updateables". For example, a ping job might be a simple
while(isActive) { send(PingMessage); delay(20, TimeUnits.SECONDS) }
and delay would be implemented by a time delta accumulator on the job's owner. When the owner is disposed, i.e. an entity is removed from the scene, all jobs associated with that dispatcher need to be cancelled because they will never be resumed again. I already have the delay and regular dispatch working, but how would I cancel all the jobs associated with the dispatcher?