-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync: add
mpsc::Sender::capacity
(#3690)
Simply exposes the number of available permits of the semaphore. This makes some kinds of bookkeeping easier without having to manually keep counts using atomics. Fixes #2642
- Loading branch information
1 parent
28d6879
commit 08f1b67
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters