Skip to content

Commit 53f55b8

Browse files
committed
Remove abortAfterTimeout
It's fundamentally flawed because it doesn't support easy cancellation of the timeout.
1 parent cfd3464 commit 53f55b8

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

src/shared/protocol.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ export type RequestOptions = {
4848

4949
/**
5050
* Can be used to cancel an in-flight request. This will cause an AbortError to be raised from request().
51-
*
52-
* Use abortAfterTimeout() to easily implement timeouts using this signal.
5351
*/
5452
signal?: AbortSignal;
5553
};

src/utils.test.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/utils.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)