File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
custom_components/pyscript Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class Function:
51
51
# task id of the task that cancels and waits for other tasks,
52
52
# and also awaits on coros
53
53
#
54
- task_repeaer = None
54
+ task_reaper = None
55
55
56
56
def __init__ (self ):
57
57
"""Warn on Function instantiation."""
@@ -108,17 +108,17 @@ async def task_reaper(reaper_q):
108
108
except Exception :
109
109
_LOGGER .error ("task_reaper: got exception %s" , traceback .format_exc (- 1 ))
110
110
111
- if not cls .task_repeaer :
111
+ if not cls .task_reaper :
112
112
cls .task_reaper_q = asyncio .Queue (0 )
113
- cls .task_repeaer = Function .create_task (task_reaper (cls .task_reaper_q ))
113
+ cls .task_reaper = Function .create_task (task_reaper (cls .task_reaper_q ))
114
114
115
115
@classmethod
116
116
async def reaper_stop (cls ):
117
117
"""Tell the reaper task to exit by sending a special task None."""
118
- if cls .task_repeaer :
118
+ if cls .task_reaper :
119
119
cls .task_reaper_q .put_nowait (["exit" ])
120
- await cls .task_repeaer
121
- cls .task_repeaer = None
120
+ await cls .task_reaper
121
+ cls .task_reaper = None
122
122
cls .task_reaper_q = None
123
123
124
124
@classmethod
@@ -180,7 +180,7 @@ async def task_unique(name, kill_me=False):
180
180
if task != curr_task :
181
181
#
182
182
# it seems we can't cancel ourselves, so we
183
- # tell the repeaer task to cancel us
183
+ # tell the reaper task to cancel us
184
184
#
185
185
Function .reaper_cancel (curr_task )
186
186
# wait to be canceled
You can’t perform that action at this time.
0 commit comments