ZActivityImplementationObject

zio.temporal.activity.ZActivityImplementationObject
See theZActivityImplementationObject companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

inline def apply[T <: AnyRef : ExtendsActivity](value: T): ZActivityImplementationObject[T]

Constructs the wrapper.

Constructs the wrapper.

The inline keyword + macro-expanded codec registration is what lets the wrapper carry a deferred thunk that still knows T's activity interface even after T is erased to AnyRef inside a List[ZActivityImplementationObject[_]].

Type parameters

T

activity type.

Value parameters

value

the correct activity implementation object

Attributes

Returns

ZActivityImplementationObject

def build[T <: AnyRef](value: T, registerCodecs: (Option[CodecRegistry]) => Unit): ZActivityImplementationObject[T]

Internal builder used by the inline apply — needed because Scala 3 forbids inline methods from calling private[zio] constructors directly. Users should use apply.

Internal builder used by the inline apply — needed because Scala 3 forbids inline methods from calling private[zio] constructors directly. Users should use apply.

Attributes

inline def layer[R, E, T <: AnyRef : Tag](value: ZLayer[R, E, T]): ZLayer[R, E, ZActivityImplementationObject[T]]

Constructs the wrapper from a ZLayer

Constructs the wrapper from a ZLayer

Attributes

inline def service[T <: AnyRef : Tag]: URIO[T, ZActivityImplementationObject[T]]

Constructs the wrapper from an ZIO environment

Constructs the wrapper from an ZIO environment

Attributes