ZActivity

zio.temporal.activity.ZActivity$
object ZActivity

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ZActivity.type

Members list

Value members

Concrete methods

Can be used to get information about an Activity Execution and to invoke Heartbeats. This static method relies on a thread-local variable and works only in the original Activity Execution thread.

Can be used to get information about an Activity Execution and to invoke Heartbeats. This static method relies on a thread-local variable and works only in the original Activity Execution thread.

Attributes

def run[R, A](action: RIO[R, A])(implicit zactivityOptions: ZActivityRunOptions[R]): A

Runs provided effect completing this activity with the effect result.

Runs provided effect completing this activity with the effect result.

Type parameters

A

effect result type

Value parameters

action

the effect

zactivityOptions

options required to run the action

Attributes

Returns

result of executing the action

def run[R, E, A](action: ZIO[R, E, A])(implicit zactivityOptions: ZActivityRunOptions[R], toApplicationFailure: ToApplicationFailure[E]): A

Runs provided effect completing this activity with the effect result.

Runs provided effect completing this activity with the effect result.

Type parameters

A

effect result type

E

effect error type

Value parameters

action

the effect

toApplicationFailure

a converter from a typed error into io.temporal.failure.ApplicationFailure

zactivityOptions

options required to run the action

Attributes

Returns

result of executing the action

def wrap(e: Throwable): RuntimeException

Use this to rethrow a checked exception from an Activity Execution instead of adding the exception to a method signature.

Use this to rethrow a checked exception from an Activity Execution instead of adding the exception to a method signature.

Attributes

Returns

Never returns; always throws. Throws original exception if e is RuntimeException or Error.