TypeScript SDK v1.15.0 documentation#321
Open
mintlify[bot] wants to merge 1 commit into
Open
Conversation
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents user-facing features shipped in TypeScript SDK v1.15.0.
What's new
Signals and InvocationReference (
develop/ts/service-communication.mdx)ctx.signal(name)— wait for a named signal on the current invocationctx.invocation(id)— get anInvocationReferenceto send signals, cancel, or attach to any invocation by IDctx.cancel()/ctx.attach()are now deprecated in favour ofctx.invocation(id).cancel()/.attach()PauseError (
develop/ts/error-handling.mdx)restate.PauseErrorthat can be thrown inside actx.runclosure to explicitly pause an invocation instead of retrying itonJournalMismatchErrorsoption (services/configuration.mdx)"retry"(default),"pause", or"fail"Flow control:
ctx.scope()SDK API (services/flow-control.mdx)ctx.scope(scopeKey)method that routes outgoing calls through a named flow-control scope from within a handlerlimitKeyoption for hierarchical concurrency limits@restatedev/restate-sdk-genpreview package (new page:develop/ts/sdk-gen.mdx)spawngen/execute,run,all/race/any/allSettled/select,spawn/interrupt, cooperative cancellation with channels,contextLocal, service clients, and common pitfalls@restatedev/restate-sdk-tunnelpreview package (new page:services/deploy/tunnel.mdx)restate.serve()All preview features require restate-server 1.7 with the relevant experimental flags enabled (noted inline).