scala / 3.2 / scala / concurrent / duration / fromnow$.html

Object fromNow.fromNow

object fromNow

This object can be used as closing token for declaring a deadline at some future point in time:

import scala.concurrent.duration._

val deadline = 3 seconds fromNow
Supertypes
Self type

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/concurrent/duration/fromNow$.html