Convenience 'constructor'.
Convenience 'constructor'. Allows very concise syntax: val workers = ResourceWorkers { new Worker[Foo] { def init() = { /* init... */ } def process(value: T) = { /* work... */ } def destroy() = { /* destroy... */ } } }
Convenience 'constructor'.
Convenience 'constructor'. Allows very concise syntax: val workers = ResourceWorkers(loadFactor, queueDepth) { new Worker[Foo] { def init() = { /* init... */ } def process(value: T) = { /* work... */ } def destroy() = { /* destroy... */ } } }
Convenience 'constructor'.
Convenience 'constructor'. Allows very concise syntax: val workers = ResourceWorkers(threads, queueLength) { new Worker[Foo] { def init() = { /* init... */ } def process(value: T) = { /* work... */ } def destroy() = { /* destroy... */ } } }