Buckets:
| // Copyright (c) 2026 the Zuke contributors | |
| // SPDX-License-Identifier: MIT | |
| /** | |
| * The signal an analysis's HTTP request runs under. | |
| * | |
| * @module | |
| */ | |
| /** | |
| * A signal that aborts after `timeoutMs`, or when `outer` does — so an | |
| * in-flight check is cut short when the bake ends or the run is cancelled. | |
| */ | |
| export function requestSignal( | |
| timeoutMs: number, | |
| outer: AbortSignal | undefined, | |
| ): AbortSignal { | |
| const timeout = AbortSignal.timeout(timeoutMs); | |
| return outer === undefined ? timeout : AbortSignal.any([timeout, outer]); | |
| } | |
Xet Storage Details
- Size:
- 542 Bytes
- Xet hash:
- fcea6951962d56e1371e50e766adfeeb7ab711e79b636a54bdcb8d28718f179e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.