Skip to content

Commit

Permalink
Describe mechanism to indicate end production
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Nov 24, 2023
1 parent 7c3126a commit 404cd2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ queue(10, producer, consumer)
- `producer` (Producer<ItemType>): A function that produces items to be added to the queue.
- `consumer` (Consumer<ItemType>): A function that consumes items from the queue.
- **Description:** A convenience function for creating and running a `BoundedQueue` instance. It takes the same parameters as the `BoundedQueue` constructor and returns a Promise that resolves when all items have been produced and consumed.
- **Returns:** A Promise that resolves when all items have been produced and consumed.
- **Returns:** A Promise that resolves when all items have been produced and consumed. Resolving `null` indicated the end of the production.

### Example Usage
```javascript
Expand Down

0 comments on commit 404cd2b

Please sign in to comment.