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)); } }