Skip to content

Commit c896129

Browse files
Don't suggest using the global EC when an implicit EC cannot be found.
Fixes scala/bug#10808.
1 parent 98b4968 commit c896129

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/src/scala/concurrent/ExecutionContext.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ 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
58-
or import scala.concurrent.ExecutionContext.Implicits.global.""")
57+
an (implicit ec: ExecutionContext) parameter to your method.""")
5958
trait ExecutionContext {
6059

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

0 commit comments

Comments
 (0)