Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/marklauter/pool
Browse files Browse the repository at this point in the history
  • Loading branch information
marklauter committed May 18, 2024
2 parents 755a748 + 3647387 commit 6271aa4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Pooled items are placed on a queue.

When a lease is requested, the pool attempts to dequeue an item.
If an item is returned from the queue, the item is returned on a task.
However, if the item queue is empty, the pool will attempt to create a new item to fullfill the lease request.
If the pool has reached its allocation limit, the pool enqueues the lease request
and the lease request's `TaskCompletionSource.Task` is returned to the caller.
However, if the item queue is empty, the pool attempts to create a new item to fullfill the lease request.
If the pool has reached its allocation limit, the pool enqueues a new lease request object, and
returns the least request's `TaskCompletionSource.Task` to the caller.

The caller will block on await until timing out, or until an item is released back to the pool.
First, the release operation attempts to dequeue an active lease request.
Expand Down

0 comments on commit 6271aa4

Please sign in to comment.