use Future.empty in Future.channel

This commit is contained in:
Roland 2011-04-23 11:49:03 +02:00
parent 6e45ab7c17
commit 33f05856c1

View file

@ -242,7 +242,7 @@ object Future {
* Construct a completable channel
*/
def channel(timeout: Long = Actor.TIMEOUT) = new Channel[Any] {
val future = new DefaultCompletableFuture[Any](timeout)
val future = empty[Any](timeout)
def !(msg: Any) = future << msg
}