Skip to content

Commit 7fdf365

Browse files
authored
Merge pull request #331 from python-adaptive/fix/asyncio-current-task
fix 'asyncio.Task.current_task' -> 'asyncio.current_task'
2 parents 05d643b + 78a2f5e commit 7fdf365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adaptive/notebook_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async def updater():
159159
await asyncio.sleep(update_interval)
160160
event() # fire off one last update before we die
161161
finally:
162-
if active_plotting_tasks[name] is asyncio.Task.current_task():
162+
if active_plotting_tasks[name] is asyncio.current_task():
163163
active_plotting_tasks.pop(name, None)
164164
cancel_button.layout.display = "none" # remove cancel button
165165

0 commit comments

Comments
 (0)