Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9afd77f

Browse files
committed
chore: Remove irrelevant TODO about activity cancellation
1 parent 1a016a6 commit 9afd77f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/worker/src/activity.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export class Activity {
5656
if (this.cancelRequested) {
5757
// Either a CancelledError that we threw or AbortError from AbortController
5858
if (err instanceof CancelledError || (err.name === 'AbortError' && err.type === 'aborted')) {
59-
// TODO: should we only allow CancelledError to count as valid cancellation?
6059
return { canceled: {} };
6160
}
6261
}

0 commit comments

Comments
 (0)