Switching AlreadyCompletedFuture to always be expired, good for GC eligibility etc

This commit is contained in:
Viktor Klang 2011-03-22 14:45:31 +01:00
parent 967f81c0ec
commit f63024bc38

View file

@ -540,6 +540,6 @@ sealed class AlreadyCompletedFuture[T](suppliedValue: Either[Throwable, T]) exte
def resultWithin(time: Long, unit: TimeUnit): Option[Either[Throwable, T]] = value
def await : Future[T] = this
def awaitBlocking : Future[T] = this
def isExpired: Boolean = false
def isExpired: Boolean = true
def timeoutInNanos: Long = 0
}