Route all outgoing calls/sends through a named scope. Returns a bundle exposing the same client/sendClient overloads, with every call/send carrying scopeKey. See RestateOperations.scope for full semantics.
client
sendClient
scopeKey
yield* scope("tenant-123").client(Greeter).greet(name); yield* scope("tenant-123").client(Cart, "cart-42").add(item); scope("tenant-123").sendClient(Greeter).greet(name); Copy
yield* scope("tenant-123").client(Greeter).greet(name); yield* scope("tenant-123").client(Cart, "cart-42").add(item); scope("tenant-123").sendClient(Greeter).greet(name);
Route all outgoing calls/sends through a named scope. Returns a bundle exposing the same
client/sendClientoverloads, with every call/send carryingscopeKey. See RestateOperations.scope for full semantics.