Object

com.thoughtworks.raii.asynchronous

Do

Related Doc: package asynchronous

Permalink

object Do

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Do
  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. def apply[A](run: Future[Releasable[Future, Try[A]]]): Do[A]

    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. def delay[A](a: ⇒ A): Do[A]

    Permalink
  8. def delay[A](continuation: ContT[Trampoline, Unit, A]): Do[A]

    Permalink
  9. def delay[A](future: Future[A]): Do[A]

    Permalink
  10. def delay[A](task: Task[A]): Do[A]

    Permalink
  11. implicit def doMonadErrorInstances: MonadError[Do, Throwable]

    Permalink
  12. implicit def doParallelApplicative(implicit throwableSemigroup: Semigroup[Throwable]): Applicative[[A]AnyRef { ... /* 2 definitions in type refinement */ }]

    Permalink
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  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. def jump()(implicit executorService: ExecutionContext): Do[Unit]

    Permalink
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. def now[A](a: A): Do[A]

    Permalink
  24. def releaseFlatMap[A, B](doA: Do[A])(f: (A) ⇒ Do[B]): Do[B]

    Permalink
  25. def releaseMap[A, B](doA: Do[A])(f: (A) ⇒ B): Do[B]

    Permalink
  26. def run[A](doA: Do[A]): Task[A]

    Permalink

    Returns a Task of A, which will open A and release all resources during opening A.

    Returns a Task of A, which will open A and release all resources during opening A.

    Example:
    1. val doInputStream: Do[InputStream] = ???
      doInputStream.map { input: InputStream =>
        doSomethingWith(input)
      }.run.unsafeAsync....
    Note

    A itself must not be a is scoped resources, though A may depends on some scoped resources during opening A.

  27. def scoped[A <: AutoCloseable](a: ⇒ A): Do[A]

    Permalink
  28. def scoped[A <: AutoCloseable](future: Future[A]): Do[A]

    Permalink
  29. def scoped[A <: AutoCloseable](task: Task[A]): Do[A]

    Permalink
  30. def shared[A](doA: Do[A]): Do[A]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  33. def unapply[F[_], A](doA: Do[A]): Some[Future[Releasable[Future, Try[A]]]]

    Permalink
  34. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped