File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
src/library/scala/concurrent Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11* .jar
2+ build
3+ * . * ~
4+ * ~
5+ .gitignore
Original file line number Diff line number Diff line change @@ -28,6 +28,6 @@ trait ExecutionContext {
2828}
2929
3030
31- sealed trait CanBlock
31+ sealed trait CanAwait
3232
3333
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ self =>
161161 }
162162 this
163163 }
164- def await (timeout : Timeout )(implicit canblock : CanBlock ): Throwable = {
164+ def await (timeout : Timeout )(implicit canawait : CanAwait ): Throwable = {
165165 var t : Throwable = null
166166 try {
167167 val res = self.await(timeout)
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ package object concurrent {
6868 * - TimeoutException - in the case that the blockable object timed out
6969 */
7070 def await [T ](timeout : Timeout )(body : => T ): T = await(timeout, new Awaitable [T ] {
71- def await (timeout : Timeout )(implicit cb : CanBlock ) = body
71+ def await (timeout : Timeout )(implicit cb : CanAwait ) = body
7272 })
7373
7474 /** Blocks on a blockable object.
@@ -104,3 +104,5 @@ package concurrent {
104104 }
105105
106106}
107+
108+
You can’t perform that action at this time.
0 commit comments