mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 06:56:35 +00:00
style: format two ai-connections files
This commit is contained in:
@@ -117,10 +117,7 @@ function withIdleLimit(body: ReadableStream<Uint8Array>, idleMs: number): Readab
|
||||
}
|
||||
|
||||
/** The next chunk, or `provider_unavailable` when none came within `idleMs`. */
|
||||
async function readWithin(
|
||||
reader: ReadableStreamDefaultReader<Uint8Array>,
|
||||
idleMs: number,
|
||||
): Promise<ReadResult> {
|
||||
async function readWithin(reader: ReadableStreamDefaultReader<Uint8Array>, idleMs: number): Promise<ReadResult> {
|
||||
let timer: ReturnType<typeof setTimeout> | undefined;
|
||||
const idle = new Promise<never>((_, reject) => {
|
||||
timer = setTimeout(
|
||||
|
||||
Reference in New Issue
Block a user