[Play 2.5] Behavior of the Play ExecutionContext with `scala.concurrent.blocking`


(Jules Ivanic) #1

Hi everyone,

Do you know how the Play 2.5 default EC behaves with scala.concurrent.blocking ?
Does it cooperate with ?

I know that the Scala default EC assign a thread for each blocking execution and boot a new thread if required.
Does the Play EC have the same behabior ?

Thanks,
Jules


(Jules Ivanic) #2

I’ll answer my own question: It behaves the same way that the Scala global EC.

One thread per blocking block and it boots has many threads as needed until an OOM appears, which crashs the program. (It’s exactly the behavior of the Scala 2.11 default EC)