Skip to content

Commit 404cd2b

Browse files
committed
Describe mechanism to indicate end production
1 parent 7c3126a commit 404cd2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ queue(10, producer, consumer)
178178
- `producer` (Producer<ItemType>): A function that produces items to be added to the queue.
179179
- `consumer` (Consumer<ItemType>): A function that consumes items from the queue.
180180
- **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.
181-
- **Returns:** A Promise that resolves when all items have been produced and consumed.
181+
- **Returns:** A Promise that resolves when all items have been produced and consumed. Resolving `null` indicated the end of the production.
182182

183183
### Example Usage
184184
```javascript

0 commit comments

Comments
 (0)