Interface IDurableFuture<T>
- Namespace
- Restate.Sdk
- Assembly
- Restate.Sdk.dll
A typed durable future representing the result of a non-blocking Restate operation. Returned by non-blocking variants like RunAsync<T>(string, Func<Task<T>>), Timer(TimeSpan), and future-returning typed client methods.
public interface IDurableFuture<T> : IDurableFuture
Type Parameters
T
Properties
InvocationId
The invocation id of the invocation this future started, or null.
Non-null only on a future returned by a call operation — CallFuture or a
future-returning typed client method — and only once the server has delivered the
id. Reading never blocks, so it is null between starting the call and the
notification arriving; awaiting the future is enough to make the id available.
Always null for futures that start no invocation: timers, side effects
(RunAsync), awakeables and signals. One-way sends do not return a future;
they hand back an InvocationHandle that always carries the id.
string? InvocationId { get; }
Property Value
Methods
GetResult()
Awaits the typed result of this future. Safe to await more than once: every await observes the same outcome and the same decoded value. The payload is deserialized on the first await; every later await returns that value or rethrows that failure.
ValueTask<T> GetResult()
Returns
- ValueTask<T>