Skip to content

Commit 4218c22

Browse files
manudeliclaude
andcommitted
fix: rename executeCount to executionCount in AsyncBatcherState and AsyncQueuerState
Unifies counter naming with all other utilities (BatcherState, QueuerState, DebouncerState, ThrottlerState, RateLimiterState, AsyncRetryerState), which all use `executionCount`. Pure rename, no behavior change. Fixes #253 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent e063ad7 commit 4218c22

17 files changed

Lines changed: 47 additions & 42 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/pacer': minor
3+
---
4+
5+
breaking: rename `executeCount` to `executionCount` in `AsyncBatcherState` and `AsyncQueuerState` for consistency with all other utilities (`BatcherState`, `QueuerState`, `DebouncerState`, `ThrottlerState`, `RateLimiterState`, and `AsyncRetryerState` all use `executionCount`). The `getAbortSignal(executionCount?)` parameter on AsyncBatcher and AsyncQueuer is renamed accordingly. Pure rename, no behavior change — update any state selectors, `initialState` values, or callbacks reading `executeCount` to use `executionCount` (fixes #253)

‎docs/framework/angular/guides/async-batching.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const batcher = injectAsyncBatcher(
150150
batcher.abort()
151151
```
152152

153-
When executions overlap, pass an `executeCount` to `getAbortSignal()` when you need a specific execution's signal.
153+
When executions overlap, pass an `executionCount` to `getAbortSignal()` when you need a specific execution's signal.
154154

155155
### Resetting safely
156156

‎docs/framework/angular/guides/async-queuing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const queue = injectAsyncQueuer(
166166
queue.abort()
167167
```
168168

169-
When multiple executions overlap, pass an `executeCount` to `getAbortSignal()` when you need a specific execution's signal.
169+
When multiple executions overlap, pass an `executionCount` to `getAbortSignal()` when you need a specific execution's signal.
170170

171171
### Resetting safely
172172

‎docs/framework/preact/guides/async-batching.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const batcher = useAsyncBatcher(
156156
batcher.abort()
157157
```
158158

159-
When executions overlap, pass an `executeCount` to `getAbortSignal()` when you need a specific execution's signal.
159+
When executions overlap, pass an `executionCount` to `getAbortSignal()` when you need a specific execution's signal.
160160

161161
### Resetting safely
162162

‎docs/framework/preact/guides/async-queuing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const queue = useAsyncQueuer(
168168
queue.abort()
169169
```
170170

171-
When multiple executions overlap, pass an `executeCount` to `getAbortSignal()` when you need a specific execution's signal.
171+
When multiple executions overlap, pass an `executionCount` to `getAbortSignal()` when you need a specific execution's signal.
172172

173173
### Resetting safely
174174

‎docs/framework/react/guides/async-batching.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const batcher = useAsyncBatcher(
156156
batcher.abort()
157157
```
158158

159-
When executions overlap, pass an `executeCount` to `getAbortSignal()` when you need a specific execution's signal.
159+
When executions overlap, pass an `executionCount` to `getAbortSignal()` when you need a specific execution's signal.
160160

161161
### Resetting safely
162162

‎docs/framework/react/guides/async-queuing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const queue = useAsyncQueuer(
168168
queue.abort()
169169
```
170170

171-
When multiple executions overlap, pass an `executeCount` to `getAbortSignal()` when you need a specific execution's signal.
171+
When multiple executions overlap, pass an `executionCount` to `getAbortSignal()` when you need a specific execution's signal.
172172

173173
### Resetting safely
174174

‎docs/framework/solid/guides/async-batching.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const batcher = createAsyncBatcher(
150150
batcher.abort()
151151
```
152152

153-
When executions overlap, pass an `executeCount` to `getAbortSignal()` when you need a specific execution's signal.
153+
When executions overlap, pass an `executionCount` to `getAbortSignal()` when you need a specific execution's signal.
154154

155155
### Resetting safely
156156

‎docs/framework/solid/guides/async-queuing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const queue = createAsyncQueuer(
158158
queue.abort()
159159
```
160160

161-
When multiple executions overlap, pass an `executeCount` to `getAbortSignal()` when you need a specific execution's signal.
161+
When multiple executions overlap, pass an `executionCount` to `getAbortSignal()` when you need a specific execution's signal.
162162

163163
### Resetting safely
164164

‎docs/framework/vanilla/guides/async-batching.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const batcher = new AsyncBatcher(
168168
batcher.abort()
169169
```
170170

171-
When executions overlap, pass an `executeCount` to `getAbortSignal()` when you need a specific execution's signal.
171+
When executions overlap, pass an `executionCount` to `getAbortSignal()` when you need a specific execution's signal.
172172

173173
### Resetting safely
174174

0 commit comments

Comments
 (0)