event_loop: add create_future method

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-11-02 19:34:55 -04:00 committed by Eric Callahan
parent 9854fd36cf
commit c2bf9bf551
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ from typing import (
TYPE_CHECKING,
Callable,
Coroutine,
List,
Optional,
TypeVar
)
@ -32,6 +33,7 @@ class EventLoop:
self.remove_reader = self.aioloop.remove_reader
self.remove_writer = self.aioloop.remove_writer
self.get_loop_time = self.aioloop.time
self.create_future = self.aioloop.create_future
def register_callback(self,
callback: FlexCallback,