mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
@@ -18,8 +18,10 @@ def as_completed(fs: Sequence[Future[_T]], *, loop: AbstractEventLoop = ...,
|
||||
timeout=None) -> Iterator[Generator[Any, None, _T]]: ...
|
||||
def ensure_future(coro_or_future: Union[Future[_T], Generator[Any, None, _T]],
|
||||
*, loop: AbstractEventLoop = ...) -> Future[_T]: ...
|
||||
def gather(*coros_or_futures: Union[Future[_T], Generator[Any, None, _T], Awaitable[_T]],
|
||||
loop: AbstractEventLoop = ..., return_exceptions: bool = False) -> Future[List[_T]]: ...
|
||||
# TODO: gather() should use variadic type vars instead of _TAny.
|
||||
_TAny = Any
|
||||
def gather(*coros_or_futures: Union[Future[_TAny], Generator[Any, None, _TAny], Awaitable[_TAny]],
|
||||
loop: AbstractEventLoop = ..., return_exceptions: bool = False) -> Future[List[_TAny]]: ...
|
||||
def run_coroutine_threadsafe(coro: Union[Generator[Any, None, _T], Coroutine[Any, None, _T], Awaitable[_T]],
|
||||
loop: AbstractEventLoop) -> concurrent.futures.Future[_T]: ...
|
||||
def shield(arg: Union[Future[_T], Generator[Any, None, _T]],
|
||||
|
||||
Reference in New Issue
Block a user