From 89ccf182fa3fee3ced97105bc20aad06bf028af7 Mon Sep 17 00:00:00 2001 From: David <> Date: Mon, 8 Feb 2021 17:38:55 -0600 Subject: [PATCH] Fix up README.md. --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 74bc3e8..27f6d11 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,7 @@ const receive = async () => { assert.equal(await channel.shift(), undefined); }; -send(); -receive(); +await Promise.all([send(), receive()]); ``` The `push` and `shift` methods are usually called in different async functions. @@ -56,7 +55,7 @@ behavior of the async functions. # API -The [API](doc/API.md) is in the `doc` directory. +The API is in the [API.md](API.md) file. # Similar Projects