File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
library/src/scala/concurrent Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,17 @@ import scala.annotation.implicitNotFound
54
54
* Application callback execution can be configured separately.
55
55
*/
56
56
@ implicitNotFound(""" Cannot find an implicit ExecutionContext. You might pass
57
- an (implicit ec: ExecutionContext) parameter to your method
58
- or import scala.concurrent.ExecutionContext.Implicits.global.""" )
57
+ an (implicit ec: ExecutionContext) parameter to your method.
58
+
59
+ The ExecutionContext is used to configure how and on which
60
+ thread pools Futures will run, so the specific ExecutionContext
61
+ that is selected is important.
62
+
63
+ If your application does not define an ExecutionContext elsewhere,
64
+ consider using Scala's global ExecutionContext by defining
65
+ the following:
66
+
67
+ implicit val ec = ExecutionContext.global""" )
59
68
trait ExecutionContext {
60
69
61
70
/** Runs a block of code on this execution context.
You can’t perform that action at this time.
0 commit comments