Skip to content

Commit

Permalink
Update asyncio_schedule.py
Browse files Browse the repository at this point in the history
replace `BaseEventLoop` with `AbstractEventLoop`.
  • Loading branch information
lucas-six authored Mar 15, 2024
1 parent 3e1124a commit b7e1ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/core/asyncio_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def callback(num: int, wait: float, *, kwarg: str = 'keyword') -> None:
time.sleep(wait)


def callback_time(num: int, wait: float, loop: asyncio.BaseEventLoop) -> None:
def callback_time(num: int, wait: float, loop: asyncio.AbstractEventLoop) -> None:
logging.debug(f'run callback_time {num}, wait {wait} seconds, at {loop.time()}')
time.sleep(wait)

Expand Down

0 comments on commit b7e1ddc

Please sign in to comment.