This PR addresses https://github.com/vert-x3/vertx-lang-kotlin/issues/189. Up until now, any child coroutine launched from a coroutine verticle has been left uncanceled (even if it adheres to the coroutine "cooperative" concurrency principle). That would cause "process leaks".
Solution:
Explicit specification of the Job the coroutine verticle is running upon and explicit cancelation of this job within the stop method.
Motivation:
This PR addresses https://github.com/vert-x3/vertx-lang-kotlin/issues/189. Up until now, any child coroutine launched from a coroutine verticle has been left uncanceled (even if it adheres to the coroutine "cooperative" concurrency principle). That would cause "process leaks".
Solution:
Explicit specification of the
Job
the coroutine verticle is running upon and explicit cancelation of this job within thestop
method.