From f63024bc38261cff735f8a18326095643f0e8bd9 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Tue, 22 Mar 2011 14:45:31 +0100 Subject: [PATCH] Switching AlreadyCompletedFuture to always be expired, good for GC eligibility etc --- akka-actor/src/main/scala/akka/dispatch/Future.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-actor/src/main/scala/akka/dispatch/Future.scala b/akka-actor/src/main/scala/akka/dispatch/Future.scala index 2bdce31f6f..f30a06d4ef 100644 --- a/akka-actor/src/main/scala/akka/dispatch/Future.scala +++ b/akka-actor/src/main/scala/akka/dispatch/Future.scala @@ -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 }