Skip to content

Commit

Permalink
Appease mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Apr 27, 2021
1 parent 89ce1a6 commit d0eacc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tractor/_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ def cancel_soon(self) -> None:
Schedules `.cancel()` to be run immediately just like when
cancelled by the parent.
"""
assert self._service_n
self._service_n.start_soon(self.cancel)

async def cancel(self) -> bool:
Expand Down

0 comments on commit d0eacc3

Please sign in to comment.