object Future
An API-compatible implementation of scala.concurrent.Future, which
is backed by ZIO. While this structure is not performant, due to emulation
of the Future API, it can be useful to help migrate legacy code away
from Future and to ZIO.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Future
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def apply[T](body: => T)(implicit ec: ExecutionContext): Future[T]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def failed[T](exception: Throwable): Future[T]
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def find[T](futures: Iterable[Future[T]])(p: (T) => Boolean)(implicit ec: ExecutionContext): Future[Option[T]]
- final def firstCompletedOf[T](futures: Iterable[Future[T]])(implicit ec: ExecutionContext): Future[T]
- final def fold[T, R](futures: Iterable[Future[T]])(zero: R)(op: (R, T) => R)(implicit ec: ExecutionContext): Future[R]
- final def foldLeft[T, R](futures: Iterable[Future[T]])(zero: R)(op: (R, T) => R)(implicit ec: ExecutionContext): Future[R]
- final def fromTry[T](result: Try[T]): Future[T]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final val never: Future[Nothing]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def reduce[T, R >: T](futures: Iterable[Future[T]])(op: (R, T) => R)(implicit ec: ExecutionContext): Future[R]
- final def reduceLeft[T, R >: T](futures: Iterable[Future[T]])(op: (R, T) => R)(implicit ec: ExecutionContext): Future[R]
- final def sequence[A](in: Seq[Future[A]])(implicit ec: ExecutionContext): Future[Seq[A]]
- final def sequence[A](in: Vector[Future[A]])(implicit ec: ExecutionContext): Future[Vector[A]]
- final def sequence[A](in: List[Future[A]])(implicit ec: ExecutionContext): Future[List[A]]
- final def successful[T](result: T): Future[T]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def traverse[A, B](in: Seq[A])(fn: (A) => Future[B])(implicit ec: ExecutionContext): Future[Seq[B]]
- final def traverse[A, B](in: Vector[A])(fn: (A) => Future[B])(implicit ec: ExecutionContext): Future[Vector[B]]
- final def traverse[A, B](in: List[A])(fn: (A) => Future[B])(implicit ec: ExecutionContext): Future[List[B]]
- final val unit: Future[Unit]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()