Merge branch 'master' of github.com:jboner/akka
This commit is contained in:
commit
a2da2bfa02
1 changed files with 6 additions and 1 deletions
|
|
@ -242,10 +242,15 @@ 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
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an empty Future with default timeout
|
||||
*/
|
||||
def empty[T](timeout : Long = Actor.TIMEOUT) = new DefaultCompletableFuture[T](timeout)
|
||||
|
||||
import scala.collection.mutable.Builder
|
||||
import scala.collection.generic.CanBuildFrom
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue