Object

eu.joaocosta.minart.runtime.pure

ResourceIO

Related Doc: package pure

Permalink

object ResourceIO extends ResourceIOOps with IOOps[Resource]

Linear Supertypes
IOOps[Resource], IOBaseOps[Resource], ResourceIOOps, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResourceIO
  2. IOOps
  3. IOBaseOps
  4. ResourceIOOps
  5. AnyRef
  6. 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 access[A](f: (Resource) ⇒ A): RIO[Resource, A]

    Permalink

    Returns a operation that requires this resource.

    Returns a operation that requires this resource.

    Definition Classes
    IOOps
  5. def accessResource[A](f: (Resource) ⇒ A): ResourceIO[A]

    Permalink

    Store an unsafe resource operation in a ResourceIO.

    Store an unsafe resource operation in a ResourceIO.

    Definition Classes
    ResourceIOOps
  6. final def asInstanceOf[T0]: T0

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def foreach[A](it: () ⇒ Iterator[A])(f: (A) ⇒ RIO[Resource, Any]): RIO[Resource, Unit]

    Permalink

    Applies an operation to each element of a Iterator[A] and discards the result.

    Applies an operation to each element of a Iterator[A] and discards the result.

    Definition Classes
    IOOps
  12. def foreach[A](it: Iterable[A])(f: (A) ⇒ RIO[Resource, Any]): RIO[Resource, Unit]

    Permalink

    Applies an operation to each element of a Iterable[A] and discards the result.

    Applies an operation to each element of a Iterable[A] and discards the result.

    Definition Classes
    IOOps
  13. def fromCallback[A](operation: ((Try[A]) ⇒ Unit) ⇒ Unit): RIO[Resource, Poll[A]]

    Permalink

    Returns a Poll from a function that receives a callback

    Returns a Poll from a function that receives a callback

    Definition Classes
    IOBaseOps
  14. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. val noop: RIO[Resource, Unit]

    Permalink

    An operation that does nothing.

    An operation that does nothing.

    Definition Classes
    IOBaseOps
  19. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  21. val path: ResourceIO[String]

    Permalink

    Path to the resource

    Path to the resource

    Definition Classes
    ResourceIOOps
  22. def pure[A](x: A): RIO[Resource, A]

    Permalink

    Lifts a value into a RIO.

    Lifts a value into a RIO.

    Definition Classes
    IOBaseOps
  23. def sequence[A](it: Iterable[RIO[Resource, A]]): RIO[Resource, List[A]]

    Permalink

    Converts an Iterable[RIO[R, A]] into a RIO[R, List[A]].

    Converts an Iterable[RIO[R, A]] into a RIO[R, List[A]].

    Definition Classes
    IOOps
  24. def sequence_(it: Iterable[RIO[Resource, Any]]): RIO[Resource, Unit]

    Permalink

    Converts an Iterable[RIO[R, A]] into a RIO[R, Unit].

    Converts an Iterable[RIO[R, A]] into a RIO[R, Unit].

    Definition Classes
    IOOps
  25. def suspend[A](x: ⇒ A): RIO[Resource, A]

    Permalink

    Suspends a computation into a RIO.

    Suspends a computation into a RIO.

    Definition Classes
    IOBaseOps
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def traverse[A, B](it: Iterable[A])(f: (A) ⇒ RIO[Resource, B]): RIO[Resource, List[B]]

    Permalink

    Converts an Iterable[A] into a RIO[R, List[B]] by applying an operation to each element.

    Converts an Iterable[A] into a RIO[R, List[B]] by applying an operation to each element.

    Definition Classes
    IOOps
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def when(predicate: Boolean)(io: ⇒ RIO[Resource, Unit]): RIO[Resource, Unit]

    Permalink

    Runs a computation only if the predicate is true, otherwise does nothing

    Runs a computation only if the predicate is true, otherwise does nothing

    Definition Classes
    IOOps
  33. def withInputStream[A](f: (InputStream) ⇒ A): ResourceIO[Try[A]]

    Permalink

    Loads the resource synchronously, processes the contents using a java.io.InputStream and returns the result.

    Loads the resource synchronously, processes the contents using a java.io.InputStream and returns the result. The InputStream is closed in the end, so it should not escape this call.

    Definition Classes
    ResourceIOOps
  34. def withInputStreamAsync[A](f: (InputStream) ⇒ A): ResourceIO[Poll[A]]

    Permalink

    Loads the resource asynchronously, processes the contents using a java.io.InputStream and returns the result.

    Loads the resource asynchronously, processes the contents using a java.io.InputStream and returns the result. The InputStream is closed in the end, so it should not escape this call.

    Definition Classes
    ResourceIOOps
  35. def withSource[A](f: (Source) ⇒ A): ResourceIO[Try[A]]

    Permalink

    Loads the resource synchronously, processes the contents using a scala.io.Source and returns the result.

    Loads the resource synchronously, processes the contents using a scala.io.Source and returns the result. The Source is closed in the end, so it should not escape this call. For working with binary files, it is recommended to use withInputStream instead.

    Definition Classes
    ResourceIOOps
  36. def withSourceAsync[A](f: (Source) ⇒ A): ResourceIO[Poll[A]]

    Permalink

    Loads the resource asynchronously, processes the contents using a scala.io.Source and returns the result.

    Loads the resource asynchronously, processes the contents using a scala.io.Source and returns the result. The Source is closed in the end, so it should not escape this call. For working with binary files, it is recommended to use withInputStreamAsync instead.

    Definition Classes
    ResourceIOOps

Inherited from IOOps[Resource]

Inherited from IOBaseOps[Resource]

Inherited from ResourceIOOps

Inherited from AnyRef

Inherited from Any

Ungrouped