DurablePromiseHandle

sealed interface DurablePromiseHandle<T>

This class represents a handle to a DurablePromise created in another service.

Functions

Link copied to clipboard
abstract suspend fun reject(reason: String)

Complete with failure the DurablePromise.

Link copied to clipboard
abstract suspend fun resolve(payload: T)

Complete with success the DurablePromise.