Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pytype / typeshed / stdlib / @python2 / mutex.pyi
Size: Mime:
from typing import Any, Callable, Deque, TypeVar

_T = TypeVar("_T")

class mutex:
    locked: bool
    queue: Deque[Any]
    def __init__(self) -> None: ...
    def test(self) -> bool: ...
    def testandset(self) -> bool: ...
    def lock(self, function: Callable[[_T], Any], argument: _T) -> None: ...
    def unlock(self) -> None: ...