Restate Typescript SDK
    Preparing search index...
    • Experimental

      Wrap an existing SDK promise as a journal-backed Future without starting another operation or adding a journal entry.

      Call inside a generator running under execute(ctx, ...), using a RestatePromise from that same invocation. Pass the SDK promise directly: async wrappers and .then() return native promises and are rejected.

      An InvocationPromise becomes a plain Future; invocation handles and child-invocation cancellation are not added by this bridge.

      Type Parameters

      • T

      Parameters

      Returns Future<T>

      yield* internal.adopt(ctx.serviceClient(greeter).greet("Ada"));

      @experimental