ZWorkflowStubQuerySyntax

zio.temporal.query.ZWorkflowStubQuerySyntax
See theZWorkflowStubQuerySyntax companion object

Attributes

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

Members list

Value members

Concrete methods

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

Queries the given workflow. Accepts the workflow query method invocation

Queries the given workflow. Accepts the workflow query method invocation

Example:

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

 val result: TemporalIO[R] = ZWorkflowStub.query(
   stub.someQuery()
 )

Type parameters

R

query method result type

Value parameters

f

the query method invocation

Attributes

Returns

the query method result