Returns a operation that requires this resource.
Returns a operation that requires this resource.
Store an unsafe resource operation in a ResourceIO.
Store an unsafe resource operation in a ResourceIO.
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.
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.
Returns a Poll from a function that receives a callback
An operation that does nothing.
An operation that does nothing.
Path to the resource
Path to the resource
Lifts a value into a RIO.
Converts an Iterable[RIO[R, A]]
into a RIO[R, List[A]]
.
Converts an Iterable[RIO[R, A]]
into a RIO[R, List[A]]
.
Converts an Iterable[RIO[R, A]]
into a RIO[R, Unit]
.
Converts an Iterable[RIO[R, A]]
into a RIO[R, Unit]
.
Suspends a computation into a RIO.
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.
Runs a computation only if the predicate is true, otherwise does nothing
Runs a computation only if the predicate is true, otherwise does nothing
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.
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.
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.
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.