Add @tailrec check
This commit is contained in:
parent
ae481fc39a
commit
2bfa5e5fc2
1 changed files with 1 additions and 0 deletions
|
|
@ -685,6 +685,7 @@ class DefaultCompletableFuture[T](timeout: Long, timeunit: TimeUnit) extends Com
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@tailrec
|
||||||
def runCallbacks(rest: List[Future[T] => Unit], callbacks: Stack[() => Unit]) {
|
def runCallbacks(rest: List[Future[T] => Unit], callbacks: Stack[() => Unit]) {
|
||||||
if (rest.nonEmpty) {
|
if (rest.nonEmpty) {
|
||||||
notify(rest.head)
|
notify(rest.head)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue