Skip to content

Commit

Permalink
Remove unused and unimplemented asyncio.Task class
Browse files Browse the repository at this point in the history
This class originated from commit 142d08c and it is unused
since _PortageEventLoop was removed in commit 20204fd.

Fixes: 20204fd ("Remove unused _PortageEventLoop and _PortageChildWatcher")
Signed-off-by: Zac Medico <[email protected]>
  • Loading branch information
zmedico committed Aug 18, 2024
1 parent e97acd3 commit a62faf9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/portage/util/futures/_asyncio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"run",
"shield",
"sleep",
"Task",
"wait",
"wait_for",
)
Expand Down Expand Up @@ -174,16 +173,6 @@ def __init__(self, **kwargs):
super().__init__(**kwargs)


class Task(Future):
"""
Schedule the execution of a coroutine: wrap it in a future. A task
is a subclass of Future.
"""

def __init__(self, coro, loop=None):
raise NotImplementedError


def ensure_future(coro_or_future, loop=None):
"""
Wrap a coroutine or an awaitable in a future.
Expand Down

0 comments on commit a62faf9

Please sign in to comment.