ZActivity

zio.temporal.activity.ZActivity$
object ZActivity

Executed arbitrary effects within an activity implementation asynchronously completing the activity

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

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

Runs provided effect completing this activity with the effect result.

Runs provided effect completing this activity with the effect result.

Attributes

A

effect result type

action

the effect

zactivityOptions

options required to run the action

Returns:

result of executing the action

def run[R, E, A](action: ZIO[R, E, A])(implicit zactivityOptions: ZActivityOptions[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.

Attributes

A

effect result type

E

effect error type

action

the effect

toApplicationFailure

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

zactivityOptions

options required to run the action

Returns:

result of executing the action