ApplicationLoader 内部是否存在隐式执行上下文

Is there an implicit execution context inside of ApplicationLoader

我正在考虑为我的 Play 应用程序创建我自己的自定义 ApplicatoinLoader。

这里某处隐藏了自定义执行上下文吗?

这是否意味着在我的自定义应用程序加载器内部,我可以连接我的自定义 akka actor 而不必创建自定义执行上下文?

https://github.com/playframework/playframework/blob/master/core/play/src/main/scala/play/api/ApplicationLoader.scala#L240

该执行上下文继承自 BuiltInComponents:

https://github.com/playframework/playframework/blob/508159092cdd27c56d6c3ca1cc32f0cd1bc86c08/core/play/src/main/scala/play/api/Application.scala#L225

它继承自 AkkaComponents:

https://github.com/playframework/playframework/blob/508159092cdd27c56d6c3ca1cc32f0cd1bc86c08/core/play/src/main/scala/play/api/libs/concurrent/Akka.scala#L110

如您所见,执行上下文只是 actor 系统的默认调度程序。