Object

com.thoughtworks.raii.invariant

ResourceT

Related Doc: package invariant

Permalink

object ResourceT

The companion object of ResourceT that contains converters and type classes.

Source
covariant.scala
Note

There are some implicit method that provides scalaz.Monads as monad transformers of F. Those monads running will collect all resources, which will be open and release altogether when run is called.

Linear Supertypes
AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. ResourceT
  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[F[_], A](run: F[Releasable[F, A]]): ResourceT[F, 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. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def intransitiveFlatMap[F[_], A, B](fa: ResourceT[F, A])(f: (A) ⇒ ResourceT[F, B])(implicit arg0: Bind[F]): ResourceT[F, B]

    Permalink

    Returns a resource of B based on a resource of A and a function that creates resource of B, for those B do not reference to A or A is a garbage collected object.

    Returns a resource of B based on a resource of A and a function that creates resource of B, for those B do not reference to A or A is a garbage collected object.

    Note

    intransitiveFlatMap is similar to flatMap in resourceTMonad, except intransitiveFlatMap will release A right after B is created. Don't use this method if you need to retain A until B is released.

  13. def intransitiveMap[F[_], A, B](fa: ResourceT[F, A])(f: (A) ⇒ B)(implicit arg0: Monad[F]): ResourceT[F, B]

    Permalink

    Returns a resource of B based on a resource of A and a function that creates B, for those B do not reference to A or A is a garbage collected object.

    Returns a resource of B based on a resource of A and a function that creates B, for those B do not reference to A or A is a garbage collected object.

    Note

    intransitiveMap is to map in resourceTMonad, except intransitiveMap will release A right after B is created. Don't use this method if you need to retain A until B is released.

  14. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def run[F[_], A](resourceT: ResourceT[F, A])(implicit monad: Bind[F]): F[A]

    Permalink

    Returns a F that performs the following process:

    Returns a F that performs the following process:

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def unapply[F[_], A](resourceT: ResourceT[F, A]): Some[F[Releasable[F, A]]]

    Permalink

  22. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Converters

Ungrouped