diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-11-09 15:07:48 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-09 08:36:31 -0800 |
commit | 172f5a51332b24c1027ea0f22d7e71b516dcd7d5 (patch) | |
tree | 73b6ff5d4e75e4b3bdabb4f1f0204199520f4c5a /js/io.ts | |
parent | 1f2c92c7c88ce6619624520ec7e6b9a1f57d445b (diff) |
Cleanups for runtime lib declarations.
Diffstat (limited to 'js/io.ts')
-rw-r--r-- | js/io.ts | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -116,12 +116,11 @@ export async function copy(dst: Writer, src: Reader): Promise<number> { return n; } -/** - * Turns `r` into async iterator. +/** Turns `r` into async iterator. * - * for await (const chunk of readerIterator(reader)) { - * console.log(chunk) - * } + * for await (const chunk of readerIterator(reader)) { + * console.log(chunk) + * } */ export function toAsyncIterator(r: Reader): AsyncIterableIterator<Uint8Array> { const b = new Uint8Array(1024); |