zio.temporal.promise

Members list

Concise view

Type members

Classlikes

sealed trait ZAsync[+A]

Contains result of an asynchronous computation. Similar to zio.IO with the following differences:

Contains result of an asynchronous computation. Similar to zio.IO with the following differences:

  1. Can be used only inside a Temporal workflow code. Use zio.ZIO and its derivatives to implement activities and workflow starting and querying code. run method doesn't throw InterruptedException. The only way to unblock run is to complete the ZAsync

  2. ZAsync doesn't directly supports cancellation. Use io.temporal.workflow.CancellationScope to cancel and handle cancellations. The pattern is that a canceled operation completes its ZAsync with io.temporal.failure.CanceledFailure when canceled.

  3. Unlike zio.IO (that is '''lazy'''), ZAsync is '''strict'''. Whenever a ZAsync is created, The thunk is immediately started

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object ZAsync

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ZAsync.type