Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[writing-async-app-in-scala-part-3] rpc client with 2 ExecutionContexts
class RpcClient(ownEc: ExecutionContext, appEc: ExecutionContext) {
def call: Future[String] =
.map(identity)(appEc) // here we move back to an application execution context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment