Skip to content

Commit 6f1da25

Browse files
Update wording according to discussion on the issue report.
1 parent c896129 commit 6f1da25

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

library/src/scala/concurrent/ExecutionContext.scala

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,17 @@ import scala.annotation.implicitNotFound
5454
* Application callback execution can be configured separately.
5555
*/
5656
@implicitNotFound("""Cannot find an implicit ExecutionContext. You might pass
57-
an (implicit ec: ExecutionContext) parameter to your method.""")
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""")
5868
trait ExecutionContext {
5969

6070
/** Runs a block of code on this execution context.

0 commit comments

Comments
 (0)