Object

zio.interop

Future

Related Doc: package interop

Permalink

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
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Future
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def apply[T](body: ⇒ T)(implicit ec: ExecutionContext): Future[T]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def failed[T](exception: Throwable): Future[T]

    Permalink
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def find[T](futures: Iterable[Future[T]])(p: (T) ⇒ Boolean)(implicit ec: ExecutionContext): Future[Option[T]]

    Permalink
  12. final def firstCompletedOf[T](futures: Iterable[Future[T]])(implicit ec: ExecutionContext): Future[T]

    Permalink
  13. final def fold[T, R](futures: Iterable[Future[T]])(zero: R)(op: (R, T) ⇒ R)(implicit ec: ExecutionContext): Future[R]

    Permalink
  14. final def foldLeft[T, R](futures: Iterable[Future[T]])(zero: R)(op: (R, T) ⇒ R)(implicit ec: ExecutionContext): Future[R]

    Permalink
  15. final def fromTry[T](result: Try[T]): Future[T]

    Permalink
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final val never: Future[Nothing]

    Permalink
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def reduce[T, R >: T](futures: Iterable[Future[T]])(op: (R, T) ⇒ R)(implicit ec: ExecutionContext): Future[R]

    Permalink
  24. final def reduceLeft[T, R >: T](futures: Iterable[Future[T]])(op: (R, T) ⇒ R)(implicit ec: ExecutionContext): Future[R]

    Permalink
  25. final def sequence[A](in: Seq[Future[A]])(implicit ec: ExecutionContext): Future[Seq[A]]

    Permalink
  26. final def sequence[A](in: Vector[Future[A]])(implicit ec: ExecutionContext): Future[Vector[A]]

    Permalink
  27. final def sequence[A](in: List[Future[A]])(implicit ec: ExecutionContext): Future[List[A]]

    Permalink
  28. final def successful[T](result: T): Future[T]

    Permalink
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def traverse[A, B](in: Seq[A])(fn: (A) ⇒ Future[B])(implicit ec: ExecutionContext): Future[Seq[B]]

    Permalink
  32. final def traverse[A, B](in: Vector[A])(fn: (A) ⇒ Future[B])(implicit ec: ExecutionContext): Future[Vector[B]]

    Permalink
  33. final def traverse[A, B](in: List[A])(fn: (A) ⇒ Future[B])(implicit ec: ExecutionContext): Future[List[B]]

    Permalink
  34. final val unit: Future[Unit]

    Permalink
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped