Fix up README.md.

This commit is contained in:
David 2021-02-08 17:38:55 -06:00
parent 3191e986dc
commit 89ccf182fa

View file

@ -46,8 +46,7 @@ const receive = async () => {
assert.equal(await channel.shift(), undefined); assert.equal(await channel.shift(), undefined);
}; };
send(); await Promise.all([send(), receive()]);
receive();
``` ```
The `push` and `shift` methods are usually called in different async functions. The `push` and `shift` methods are usually called in different async functions.
@ -56,7 +55,7 @@ behavior of the async functions.
# API # API
The [API](doc/API.md) is in the `doc` directory. The API is in the [API.md](API.md) file.
# Similar Projects # Similar Projects