I am new to Scala, and was trying to use some parallel constructs(Future
in particular).
I found there is an implicit parameter of type ExecutionContext
. IMO, it is something similar to(and maybe more abstract than) the concept of thread pool. I have tried to learn it through documentation, but I cannot find any clear and detailed introduction about it.
Could anyone please explain what exactly execution context is in Scala? And what is the purpose of introducing execution context to the language?