@blakelee Assuming that you mean only 1 active task per JVM instance then you are basically looking at needing to use a Singleton pattern which in Kotlin is implemented using 'object'
See https://kotlinlang.org/docs/reference/object-declarations.html & search page for singleton.