add missing things in multiprocessing (#13153)

This commit is contained in:
Stephen Morton
2024-12-27 21:13:30 -08:00
committed by GitHub
parent 2c27933bbb
commit a4b7c36366
4 changed files with 66 additions and 45 deletions

View File

@@ -54,6 +54,7 @@ class RLock(SemLock):
class Semaphore(SemLock):
def __init__(self, value: int = 1, *, ctx: BaseContext) -> None: ...
def get_value(self) -> int: ...
class BoundedSemaphore(Semaphore):
def __init__(self, value: int = 1, *, ctx: BaseContext) -> None: ...