Skip to content

Commit d43d5e5

Browse files
author
aleksandar
committed
Changing trait CanBlock name to CanAwait.
1 parent 5a4b555 commit d43d5e5

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
*.jar
2+
build
3+
*.*~
4+
*~
5+
.gitignore

src/library/scala/concurrent/ExecutionContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ trait ExecutionContext {
2828
}
2929

3030

31-
sealed trait CanBlock
31+
sealed trait CanAwait
3232

3333

src/library/scala/concurrent/Future.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

src/library/scala/concurrent/package.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)