问题 When I make a future , or apply methods like onSuccess and map , I can specify ExecutionContext for them. For example, val f = future { // code } executionContext f.map(someFunction)(executionContext) f onSuccess { // code } executionContext However, if I use a for-comprehension of future, how can I specify ExecutionContext for the yield part? for { f <- future1 g <- future2 } yield { // code to be executed after future1 onSuccess and future2 onSuccess // What ExecutionContext runs this code?