One more update.
worker1 and worker2, being global, are shared state and thus not allowed to be referenced inside a worker job. This is neither detected by the compiler nor by the runtime.
It also seems like the workers themselves are capturing, which is correctly detected if they are properly passed through the producer. Then `kotlin.IllegalStateException: Illegal transfer state`will be thrown