ZChildWorkflowExecutionSyntax

zio.temporal.workflow.ZChildWorkflowExecutionSyntax
See theZChildWorkflowExecutionSyntax companion object

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ZChildWorkflowStub.type

Members list

Value members

Concrete 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

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)