Skip to content

Commit 432aae5

Browse files
committed
no reusable action
1 parent f4f582c commit 432aae5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

packages/timeline/src/index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ export async function* action<T>(a: Action<T>): NonReuseableTimeline<T> {
2323
yield a
2424
}
2525

26-
export function reuseableAction<T>({
27-
until,
28-
...rest
29-
}: Omit<Action<T>, 'until'> & { readonly until?: () => Promise<unknown> }): ReusableTimeline<T> {
30-
return () =>
31-
action({
32-
...rest,
33-
until: until?.(),
34-
})
35-
}
36-
3726
export async function* parallel<T>(
3827
type: 'all' | 'race',
3928
...timelines: Array<Timeline<T> | boolean>

0 commit comments

Comments
 (0)