Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 22, 2023
1 parent 16da00f commit 8d3dd29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export function createFetch(globalOptions: CreateFetchOptions = {}): $Fetch {
}
}

// TODO: Can we merge signals?
if (!context.options.signal && context.options.timeout) {
const controller = new AbortController();
setTimeout(() => controller.abort(), context.options.timeout);
Expand Down

0 comments on commit 8d3dd29

Please sign in to comment.