Creates a blocker that is backed by a cached thread pool.
Creates a blocker that is backed by a cached thread pool.
Creates a blocker backed by the ExecutorService
returned by the
supplied task.
Creates a blocker backed by the ExecutorService
returned by the
supplied task. The executor service is shut down upon finalization
of the returned resource.
If there are pending tasks in the thread pool at time the returned
Blocker
is finalized, the finalizer fails with a Blocker.OutstandingTasksAtShutdown
exception.
Creates a blocker that delegates to the supplied execution context.
Creates a blocker that delegates to the supplied execution context.
This must not be used with general purpose contexts like
scala.concurrent.ExecutionContext.Implicits.global'.
Creates a blocker that delegates to the supplied executor service.
Creates a blocker that delegates to the supplied executor service.