Switching AlreadyCompletedFuture to always be expired, good for GC eligibility etc
This commit is contained in:
parent
967f81c0ec
commit
f63024bc38
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue