We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d6768f commit 6ef5e52Copy full SHA for 6ef5e52
samples/system-info/index.js
@@ -1,12 +1,13 @@
1
const os = require("os");
2
3
-module.exports = async function*(_timeout) {
+module.exports = async function*(input, _timeout) {
4
const timeout = +_timeout || 1000;
5
console.log({timeout});
6
7
while (true) {
8
const next = new Promise(res => setTimeout(res, timeout));
9
yield {
10
+ type: "basic",
11
ts: Date.now(),
12
mem: os.freemem()
13
}
0 commit comments