com.itv.lifecycle
Trait for classes that provide services that require shutting down after use.
Supports monadic operations so that Services can be used and combined like the following:
for { executionContext <- FixedThreadPoolExecutorService(numThreads = 4) httpServer <- HttpServerService(port = 8080) } { respondToRequests(httpServer, executionContext) }
The public type this lifecycle provides
Trait for classes that provide services that require shutting down after use.
Supports monadic operations so that Services can be used and combined like the following:
The public type this lifecycle provides