]> git.ipfire.org Git - thirdparty/tornado.git/commit
websocket: Change some Future type annotations to Awaitables
authorBen Darnell <ben@bendarnell.com>
Sun, 30 Dec 2018 17:10:20 +0000 (12:10 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 30 Dec 2018 20:14:36 +0000 (15:14 -0500)
commitb8192ecad7ee67ea06a7ffcf10329a5d3c6dae81
treeb5b41db093b41fbda92384e23459fd2ad8d5b20a
parent34f15b2d19d11528d8464e69956da8d76e41f4e2
websocket: Change some Future type annotations to Awaitables

This conforms with usage elsewhere, that methods returning None use
Futures (self-starting in case the result is not awaited) and others
use Awaitable (reserving the option to use more efficient native
coroutines).
tornado/websocket.py