-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed single line buffering in lines
- Loading branch information
Showing
31 changed files
with
243 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * as path from "../tests/deps/path.ts"; | ||
export * as colors from "https://deno.land/std@0.207.0/fmt/colors.ts"; | ||
export * as colors from "https://deno.land/std@0.208.0/fmt/colors.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { blue } from "https://deno.land/[email protected]/fmt/colors.ts"; | ||
import { run } from "../../mod.ts"; | ||
|
||
const produce = import.meta.resolve("./produce.ts"); | ||
|
||
for await (const line of run("deno", "run", produce).lines) { | ||
console.log(`${blue(new Date().toISOString())} ${line}`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { sleep } from "../../mod.ts"; | ||
|
||
let count = 0; | ||
|
||
for (;;) { | ||
console.log(`${new Date().toISOString()} ${count++}\nx\ny\nz`); | ||
await sleep(1000 + Math.random() * 10000); | ||
} | ||
|
||
// for (let j = 0; j < 10000000; j++) { | ||
// const acc: string[] = []; | ||
// for (let i = 0; i < 1000; i++) { | ||
// acc.push( | ||
// `${j}:${i} dsjkslfsjldjflskjflsdjfljslkdfjsdlkfjskjklsdjflksjdklsjldjfskdfsfdlsjfksl`, | ||
// ); | ||
// } | ||
// console.log(acc.join("")); | ||
// await sleep(10000); | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from "https://deno.land/std@0.207.0/testing/asserts.ts"; | ||
export * from "https://deno.land/std@0.208.0/testing/asserts.ts"; | ||
export * from "https://deno.land/x/[email protected]/mod.ts"; | ||
export * from "https://deno.land/std@0.207.0/fmt/colors.ts"; | ||
export * from "https://deno.land/std@0.208.0/fmt/colors.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "https://deno.land/std@0.207.0/async/mod.ts"; | ||
export * from "https://deno.land/std@0.207.0/io/mod.ts"; | ||
export * from "https://deno.land/std@0.208.0/async/mod.ts"; | ||
export * from "https://deno.land/std@0.208.0/io/mod.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import { Answer, Question } from "./common-json-defs.ts"; | |
import * as proc from "../../mod.ts"; | ||
import { WritableIterable } from "../../../mod1.ts"; | ||
import { asynciter } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { blue, red } from "https://deno.land/std@0.207.0/fmt/colors.ts"; | ||
import { blue, red } from "https://deno.land/std@0.208.0/fmt/colors.ts"; | ||
|
||
/** | ||
* This demonstrates sending objects to and receiving objects from a child process | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/std@0.207.0/path/posix.ts"; | ||
export * from "https://deno.land/std@0.208.0/path/posix.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { run } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { run } from "https://deno.land/x/[email protected].5/mod.ts"; | ||
|
||
await run("echo", "Hello, world.").forEach((it) => console.dir(it)); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/std@0.207.0/fmt/colors.ts"; | ||
export * from "https://deno.land/std@0.208.0/fmt/colors.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/std@0.207.0/path/mod.ts"; | ||
export * from "https://deno.land/std@0.208.0/path/mod.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/std@0.207.0/async/retry.ts"; | ||
export * from "https://deno.land/std@0.208.0/async/retry.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/std@0.207.0/streams/mod.ts"; | ||
export * from "https://deno.land/std@0.208.0/streams/mod.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/std@0.207.0/async/tee.ts"; | ||
export * from "https://deno.land/std@0.208.0/async/tee.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/std@0.207.0/assert/mod.ts"; | ||
export * from "https://deno.land/std@0.208.0/assert/mod.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/std@0.207.0/fmt/colors.ts"; | ||
export * from "https://deno.land/std@0.208.0/fmt/colors.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/std@0.207.0/path/mod.ts"; | ||
export * from "https://deno.land/std@0.208.0/path/mod.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/std@0.207.0/streams/mod.ts"; | ||
export * from "https://deno.land/std@0.208.0/streams/mod.ts"; |
Oops, something went wrong.