Skip to content

Commit ae6802c

Browse files
authored
Discard changes to Lib/asyncio/taskgroups.py
1 parent 3da5817 commit ae6802c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Lib/asyncio/taskgroups.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ async def _aexit(self, et, exc):
178178
exc = None
179179

180180

181-
def create_task(self, coro, *, name=None, context=None, eager_start=None):
181+
def create_task(self, coro, *, name=None, context=None):
182182
"""Create a new task in this group and return it.
183183
184184
Similar to `asyncio.create_task`.
@@ -192,12 +192,10 @@ def create_task(self, coro, *, name=None, context=None, eager_start=None):
192192
if self._aborting:
193193
coro.close()
194194
raise RuntimeError(f"TaskGroup {self!r} is shutting down")
195-
if context is None and eager_start is None:
195+
if context is None:
196196
task = self._loop.create_task(coro, name=name)
197-
elif eager_start is None:
198-
task = self._loop.create_task(coro, name=name, context=context)
199197
else:
200-
task = self._loop.create_task(coro, name=name, context=context, eager_start=eager_start)
198+
task = self._loop.create_task(coro, name=name, context=context)
201199

202200
# Always schedule the done callback even if the task is
203201
# already done (e.g. if the coro was able to complete eagerly),

0 commit comments

Comments
 (0)