UsingAsyncShift

cps.runtime.util.UsingAsyncShift
object UsingAsyncShift extends AsyncShift[Using.type]

Attributes

Source
UsingAsyncShift.scala
Graph
Supertypes
trait AsyncShift[Using.type]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[F[_], R, A](o: Using.type, m: CpsTryMonad[F])(resource: () => F[R])(f: R => F[A])(implicit arg0: Releasable[R]): F[Try[A]]

Attributes

Source
UsingAsyncShift.scala
def resource[F[_], R, A](o: Using.type, m: CpsTryMonad[F])(r: R)(f: R => F[A])(implicit arg0: Releasable[R]): F[A]

Attributes

Source
UsingAsyncShift.scala
def resources[F[_], R1, R2, A](o: Using.type, m: CpsTryMonad[F])(r1: R1, r2: () => F[R2])(f: (R1, R2) => F[A])(implicit r1Releasable: Releasable[R1], r2Releasable: Releasable[R2]): F[A]

Attributes

Source
UsingAsyncShift.scala
def resources[F[_], R1, R2, R3, A](o: Using.type, m: CpsTryMonad[F])(r1: R1, r2: () => F[R2], r3: () => F[R3])(f: (R1, R2, R3) => F[A])(implicit r1Releasable: Releasable[R1], r2Releasable: Releasable[R2], r3Releasable: Releasable[R3]): F[A]

Attributes

Source
UsingAsyncShift.scala
def resources[F[_], R1, R2, R3, R4, A](o: Using.type, m: CpsTryMonad[F])(r1: R1, r2: () => F[R2], r3: () => F[R3], r4: () => F[R4])(f: (R1, R2, R3, R4) => F[A])(implicit r1Rl: Releasable[R1], r2Rl: Releasable[R2], r3Rl: Releasable[R3], r4Rl: Releasable[R4]): F[A]

Attributes

Source
UsingAsyncShift.scala