You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WaitIterator constructor typing is not match with documentation #3001
The typing is accurate; the docs are wrong. WaitIterator does not currently work with all awaitables, only Futures. (Event.wait returns a Future even though its typing says Awaitable)
However, I think it's better to make the code behave as documented than to change the docs to match the code.
Activity
bdarnell commentedon Aug 23, 2023
The typing is accurate; the docs are wrong.
WaitIteratordoes not currently work with all awaitables, only Futures. (Event.waitreturns aFutureeven though its typing saysAwaitable)However, I think it's better to make the code behave as documented than to change the docs to match the code.