Subcontext

izumi.distage.Subcontext
trait Subcontext[A]

Attributes

See also
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def map[B : Tag](f: A => B): Subcontext[B]
def plan: Plan
def produce[F[_] : Tag](): Lifecycle[F, A]
def produceRun[F[_] : Tag, B](f: A => F[B]): F[B]

Same as .produce[F]().use(f)

Same as .produce[F]().use(f)

Attributes

Note

Resources allocated by the subcontext will be closed after f exits. Use produce if you need to extend the lifetime of the Subcontext's resources.

def provide[T : Tag](value: T)(implicit evidence$1: Tag[T], pos: CodePositionMaterializer): Subcontext[A]
def provide[T : Tag](name: Identifier)(value: T)(implicit evidence$1: Tag[T], pos: CodePositionMaterializer): Subcontext[A]

Concrete methods

final def produceRun[B](f: A => B): B