mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Allow asyncio.wait to accept non-Task Futures (#881)
This commit is contained in:
committed by
Guido van Rossum
parent
d486e2a8d5
commit
fd1201f5d5
@@ -26,7 +26,7 @@ def run_coroutine_threadsafe(coro: _FutureT[_T],
|
||||
loop: AbstractEventLoop) -> concurrent.futures.Future[_T]: ...
|
||||
def shield(arg: _FutureT[_T], *, loop: AbstractEventLoop = ...) -> Future[_T]: ...
|
||||
def sleep(delay: float, result: _T = ..., loop: AbstractEventLoop = ...) -> Future[_T]: ...
|
||||
def wait(fs: List[Task[_T]], *, loop: AbstractEventLoop = ...,
|
||||
def wait(fs: List[_FutureT[_T]], *, loop: AbstractEventLoop = ...,
|
||||
timeout: float = ...,
|
||||
return_when: str = ...) -> Future[Tuple[Set[Future[_T]], Set[Future[_T]]]]: ...
|
||||
def wait_for(fut: _FutureT[_T], timeout: Optional[float],
|
||||
|
||||
Reference in New Issue
Block a user