Skip to content

Instantly share code, notes, and snippets.

@adamw
Created June 7, 2019 10:45
Show Gist options
  • Save adamw/4265986894d5776e2f7ad35cf3a1596e to your computer and use it in GitHub Desktop.
Save adamw/4265986894d5776e2f7ad35cf3a1596e to your computer and use it in GitHub Desktop.
val ec1 = ExecutionContext.fromExecutor(Executors.newCachedThreadPool(
new NamedThreadFactory("ec1", true)))
val ec2 = ExecutionContext.fromExecutor(Executors.newCachedThreadPool(
new NamedThreadFactory("ec2", true)))
val ec3 = Executors.newCachedThreadPool(new NamedThreadFactory("ec3", true))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment