Replies: 1 comment
-
I implemented this idea in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The documentation has some example for
T.worker
:When used like this, there is potential to hog resources longer then needed. Especially, if the worker depends on other targets and these change.
The idea is, that we check whether the value type
T
of theWorker[T]
is anjava.lang.AutoCloseable
. In that case, we can callclose()
before we create a new instance or before we shutdown Mill.We could also think about supporting
scala.util.Using.Releasable
type-class.In the example above, we could implement the
close
function to stop the previously spawned process.Beta Was this translation helpful? Give feedback.
All reactions