Files
typeshed/builtins/2.7/thread.pyi
2015-09-30 09:59:44 -07:00

17 lines
572 B
Python

from typing import Callable, Any
class error(Exception): ...
class LockType:
def acquire(self, waitflag: int = None) -> bool: ...
def release(self) -> None: ...
def locked(self) -> bool: ...
def __enter__(self) -> LockType: ...
def __exit__(self, value: Any, traceback: Any) -> None: ...
def start_new_thread(function: Callable[..., Any], args: Any, kwargs: Any = None) -> int: ...
def interrupt_main() -> None: ...
def exit() -> None: ...
def allocate_lock() -> LockType: ...
def get_ident() -> int: ...
def stack_size(size: int = None) -> int: ...