ZActivityExecutionSyntax

zio.temporal.activity.ZActivityExecutionSyntax
See theZActivityExecutionSyntax companion object

Attributes

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

Members list

Value members

Concrete methods

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

Executes the given activity synchronously. Accepts the activity method invocation

Executes the given activity synchronously. Accepts the activity method invocation

Example:

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

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

Type parameters

R

activity result type

Value parameters

f

the activity invocation

Attributes

Returns

the activity result

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

Executes the given activity asynchronously. Accepts the activity method invocation

Executes the given activity asynchronously. Accepts the activity method invocation

Example:

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

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

Type parameters

R

activity result type

Value parameters

f

the activity invocation

Attributes

Returns

the activity result (async)