From 5842775133f0c6a5ab996746622137cf0b63ee72 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sun, 13 Oct 2019 02:32:03 +0900 Subject: [PATCH] docs: use await --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f734a1..0aa64ab 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ async function main() { await port.export("out"); for (;;) { - port.write(value); + await port.write(value); await new Promise(resolve => setTimeout(resolve, 1e3)); } }