Skip to content

Commit 3a8a247

Browse files
authored
fix current_task() call in example (#1739)
1 parent 25e384e commit 3a8a247

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/source/reference-lowlevel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ this does serve to illustrate the basic structure of the
455455

456456
async def acquire(self):
457457
while self._held:
458-
task = trio.current_task()
458+
task = trio.lowlevel.current_task()
459459
self._blocked_tasks.append(task)
460460
def abort_fn(_):
461461
self._blocked_tasks.remove(task)

0 commit comments

Comments
 (0)