Skip to content

Commit 297aec3

Browse files
committed
Add availability note
1 parent 2770ec0 commit 297aec3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/upgrade-to-v4.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ tasks.onComplete(({ ctx, result }) => {
172172

173173
### onCancel
174174

175+
<Note>Available in v4.0.0-beta.12 and later.</Note>
176+
175177
You can now define an `onCancel` hook that is called when a run is cancelled. This is useful if you want to clean up any resources that were allocated for the run.
176178

177179
```ts

0 commit comments

Comments
 (0)