Skip to content

Commit db9db03

Browse files
committed
extmod/asyncio: Drop set_exception and set_result.
Signed-off-by: James Ward <james@notjam.es>
1 parent 92092f0 commit db9db03

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

extmod/asyncio/task.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@ def remove_done_callback(self, callback):
192192
self.state = True
193193
return 1
194194

195-
def set_result(self, result):
196-
raise RuntimeError()
197-
198195
def result(self):
199196
"""
200197
Return the result of the Task.
@@ -216,9 +213,6 @@ def result(self):
216213

217214
return self.data.value
218215

219-
def set_exception(self, exception):
220-
raise RuntimeError()
221-
222216
def exception(self):
223217
"""
224218
Return the exception that was set on this Task.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy