ZChildWorkflowStub

zio.temporal.workflow.ZChildWorkflowStub$
See theZChildWorkflowStub companion trait

Attributes

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

Members list

Type members

Classlikes

final implicit class Ops[A](self: Of[A]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
sealed trait Untyped

An untyped version of ZChildWorkflowStub

An untyped version of ZChildWorkflowStub

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited types

final type Of[+T] = A & T

Stub is a compile-time view of temporal's runtime abstractions, such as Workflows.

Stub is a compile-time view of temporal's runtime abstractions, such as Workflows.

Type parameters

T

compile-time view

Attributes

Note

Do not call methods of proxied workflows directly! It should be used only within special methods like ZWorkflowStub.signal, ZWorkflowStub.start, ZWorkflowStub.execute and so on.

Inherited from:
Stubs (hidden)

Value members

Inherited methods

inline def execute[R](inline f: R)(using javaTypeTag: JavaTypeTag[R]): R

Executes the given child workflow synchronously. Accepts the workflow method invocation

Executes the given child workflow synchronously. Accepts the workflow method invocation

Example:

 val stub: ZChildWorkflowStub.Of[T] = ???

 val result: R = ZChildWorkflowStub.execute(
   stub.someMethod(someArg)
 )

Type parameters

R

workflow result type

Value parameters

f

the workflow method invocation

Attributes

Returns

the workflow result

Inherited from:
ZChildWorkflowExecutionSyntax
inline def executeAsync[R](inline f: R)(using javaTypeTag: JavaTypeTag[R]): ZAsync[R]

Executes the given child workflow asynchronously. Accepts the workflow method invocation

Executes the given child workflow asynchronously. Accepts the workflow method invocation

Example:

 val stub: ZChildWorkflowStub.Of[T] = ???

 val result: ZAsync[R] = ZChildWorkflowStub.executeAsync(
   stub.someMethod(someArg)
 )

Type parameters

R

workflow result type

Value parameters

f

the workflow method invocation

Attributes

Returns

the workflow result (async)

Inherited from:
ZChildWorkflowExecutionSyntax
inline def signal(inline f: Unit): Unit

Sends a signal to the child workflow. Accepts the signal method invocation

Sends a signal to the child workflow. Accepts the signal method invocation

Example:

 val stub: ZChildWorkflowStub.Of[T] = ???

 ZChildWorkflowStub.signal(
   stub.someSignalMethod(someArg)
 )

Value parameters

f

the signal method invocation

Attributes

Inherited from:
ZChildWorkflowStubSignalSyntax

Implicits

Implicits

final implicit def Ops[A](self: Of[A]): Ops[A]