Add tornado.locks module

This commit is contained in:
Isaac Goldberg
2016-03-09 19:11:48 -08:00
parent b31e5eec54
commit 2255e6c69a

50
third_party/2.7/tornado/locks.pyi vendored Normal file
View File

@@ -0,0 +1,50 @@
# Stubs for tornado.locks (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class _TimeoutGarbageCollector:
def __init__(self): ...
class Condition(_TimeoutGarbageCollector):
io_loop = ... # type: Any
def __init__(self): ...
def wait(self, timeout=None): ...
def notify(self, n=1): ...
def notify_all(self): ...
class Event:
def __init__(self): ...
def is_set(self): ...
def set(self): ...
def clear(self): ...
def wait(self, timeout=None): ...
class _ReleasingContextManager:
def __init__(self, obj): ...
def __enter__(self): ...
def __exit__(self, exc_type, exc_val, exc_tb): ...
class Semaphore(_TimeoutGarbageCollector):
def __init__(self, value=1): ...
def release(self): ...
def acquire(self, timeout=None): ...
def __enter__(self): ...
__exit__ = ... # type: Any
def __aenter__(self): ...
def __aexit__(self, typ, value, tb): ...
class BoundedSemaphore(Semaphore):
def __init__(self, value=1): ...
def release(self): ...
class Lock:
def __init__(self): ...
def acquire(self, timeout=None): ...
def release(self): ...
def __enter__(self): ...
__exit__ = ... # type: Any
def __aenter__(self): ...
def __aexit__(self, typ, value, tb): ...