Spaces:
Sleeping
Sleeping
| from typing import Union, Optional, Callable, Any | |
| from .abstract import AbstractContext, AbstractOperation | |
| # noinspection PyPropertyDefinition | |
| class Context(AbstractContext): | |
| def __init__(self, max_requests: int = 32): ... | |
| # noinspection PyPropertyDefinition | |
| class Operation(AbstractOperation): | |
| def read( | |
| cls, nbytes: int, fd: int, offset: int, priority=0 | |
| ) -> "AbstractOperation": ... | |
| def write( | |
| cls, payload_bytes: bytes, | |
| fd: int, offset: int, priority=0, | |
| ) -> "AbstractOperation": ... | |
| def fsync(cls, fd: int, priority=0) -> "AbstractOperation": ... | |
| def fdsync(cls, fd: int, priority=0) -> "AbstractOperation": ... | |
| def get_value(self) -> Union[bytes, int]: ... | |
| def fileno(self) -> int: ... | |
| def offset(self) -> int: ... | |
| def payload(self) -> Optional[Union[bytes, memoryview]]: ... | |
| def nbytes(self) -> int: ... | |
| def set_callback(self, callback: Callable[[int], Any]) -> bool: ... | |