ExecutionContext that runs work immediately on the caller thread.
ExecutionContext that runs work immediately on the caller thread. Useful in tests so that assertions can be made as soon as a method returns.
Can be used either explicitly:
val f = Future(12345)(SameThreadExecutionContext)
or implicitly:
import SameThreadExecutionContext.implicitly val f = Future(12345)