Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed Aug 3, 2023
1 parent d72c1b9 commit 2b52fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/services/sdk/awakeables.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This works as follows:
- The external process executes the task and then returns the ID to Restate, optionally together with a payload.
- Once the ID has been returned to the service, the invocation resumes.

The SDK deserializes the payload `JSON.parse(result.toString()) as T`.
The SDK deserializes the payload with `JSON.parse(result.toString()) as T`.

You can use this pattern to execute tasks in non-Restate services, and retrieve the result. This design pattern is also referred to as the callback (task token) pattern.

Expand Down

0 comments on commit 2b52fc0

Please sign in to comment.