-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path_concurrency.pyi
75 lines (67 loc) · 3.01 KB
/
_concurrency.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright (c) Meta Platforms, Inc. and affiliates.
# pyre-strict
from typing import Generic, Iterator, Optional, Sequence, TypeVar
K = TypeVar("K")
V = TypeVar("V")
class ConcurrentDict(Generic[K, V]):
def __init__(self, initial_capacity: Optional[int] = ...) -> None: ...
def __contains__(self, key: K) -> bool: ...
def __setitem__(self, key: K, value: V) -> None: ...
def __getitem__(self, key: V) -> Optional[V]: ...
def as_dict(self) -> dict[K, V]: ...
E = TypeVar("E")
class ConcurrentDeque(Generic[E]):
def __init__(self, iterable: Optional[Sequence[E]] = None) -> None: ...
def append(self, value: E) -> None: ...
def appendleft(self, value: E) -> None: ...
def clear(self) -> None: ...
def contains(self, value: E) -> bool: ...
def extend(self, iterable: Sequence[E]) -> None: ...
def extendleft(self, iterable: Sequence[E]) -> None: ...
def pop(self) -> E: ...
def popleft(self) -> E: ...
def remove(self, value: E) -> None: ...
def rotate(self, n: int = 1) -> None: ...
def __getitem__(self, index: int) -> E: ...
def __iter__(self) -> Iterator[E]: ...
def __len__(self) -> int: ...
def __repr__(self) -> str: ...
class AtomicInt64:
def __init__(self, value: int = ...) -> None: ...
def set(self, value: int) -> None: ...
def get(self) -> int: ...
def incr(self) -> int: ...
def decr(self) -> int: ...
def __format__(self, format_spec: str) -> str: ...
def __add__(self, other: object) -> int: ...
def __sub__(self, other: object) -> int: ...
def __mul__(self, other: object) -> int: ...
def __floordiv__(self, other: object) -> int: ...
def __neg__(self) -> int: ...
def __pos__(self) -> int: ...
def __abs__(self) -> int: ...
def __bool__(self) -> bool: ...
def __or__(self, other: object) -> int: ... # pyre-fixme[15]: Inconsistent override
def __xor__(self, other: object) -> int: ...
def __and__(self, other: object) -> int: ...
def __invert__(self) -> int: ...
def __iadd__(self, other: object) -> "AtomicInt64": ...
def __isub__(self, other: object) -> "AtomicInt64": ...
def __imul__(self, other: object) -> "AtomicInt64": ...
def __ifloordiv__(self, other: object) -> "AtomicInt64": ...
def __ior__(self, other: object) -> "AtomicInt64": ...
def __ixor__(self, other: object) -> "AtomicInt64": ...
def __iand__(self, other: object) -> "AtomicInt64": ...
def __int__(self) -> int: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __lt__(self, other: object) -> bool: ...
def __le__(self, other: object) -> bool: ...
def __gt__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
class AtomicReference(Generic[V]):
def __init__(self, value: Optional[V]) -> None: ...
def set(self, value: V) -> None: ...
def get(self) -> Optional[V]: ...
def exchange(self, value: V) -> Optional[V]: ...
def compare_exchange(self, expected: V, value: V) -> bool: ...