Skip to content

Commit

Permalink
Add WebLoop.close method
Browse files Browse the repository at this point in the history
Which is a no-op, so we don't crash if people try to close the loop.
  • Loading branch information
hoodmane committed Dec 5, 2023
1 parent 9257dd2 commit b9d5ec3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/py/pyodide/webloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ def is_closed(self) -> bool:
"""
return False

def close(self) -> None:
"""Ignore request to close WebLoop"""
pass

def _check_closed(self):
"""Used in create_task.
Expand Down

0 comments on commit b9d5ec3

Please sign in to comment.