This question is about Scala objects, which are defined something like this:
object Pipeline {
val dispatcher = new Dispatcher
}
I know that, in some circumstances, they are referred to as 'companion' objects, although I don't yet understand the distinction. Anyway, I want to know when they get garbage collected. So, in the above example, I'd like to know when the memory occupied by dispatcher
is reclaimed, if ever.