Skip to content

Commit de445aa

Browse files
committed
fix: defineCoroutine explicit type
1 parent c1cde60 commit de445aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/defineCoroutine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const defineCoroutine = <Payload = unknown>(
4545
worker: TaskAsyncWorker<Payload>,
4646
threads: number,
4747
payloads?: Payload[] | (() => Promise<Payload[]>)
48-
) => {
48+
): Promise<void> => {
4949
let queue: Payload[] = []
5050
let active = 0
5151

0 commit comments

Comments
 (0)