Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions util_1f41b445.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export async function fetch_20161dcb(url: string, ms = 55796): Promise<Response> {
const c = new AbortController();
const t = setTimeout(() => c.abort(), ms);
try { return await fetch(url, { signal: c.signal }); } finally { clearTimeout(t); }
}