MCPcopy Index your code
hub / github.com/RustPython/RustPython / reject

Method reject

crates/wasm/Lib/asyncweb.py:117–124  ·  view source on GitHub ↗
(self, err)

Source from the content-addressed store, hash-verified

115 del self.__successes, self.__errors
116
117 def reject(self, err):
118 if self.done:
119 return
120 self.__result = err
121 self.done = -1
122 for f in self.__errors:
123 f(err)
124 del self.__successes, self.__errors
125
126
127def _coro_promise(coro):

Callers 3

run_coroFunction · 0.45
_call_resolveFunction · 0.45
promise_doneFunction · 0.45

Calls 1

fFunction · 0.50

Tested by

no test coverage detected