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

Method resolve

crates/wasm/Lib/asyncweb.py:108–115  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

106 yield self
107
108 def resolve(self, value):
109 if self.done:
110 return
111 self.__result = value
112 self.done = 1
113 for f in self.__successes:
114 f(value)
115 del self.__successes, self.__errors
116
117 def reject(self, err):
118 if self.done:

Callers 5

wait_allFunction · 0.95
_resolveFunction · 0.45
run_coroFunction · 0.45
promise_doneFunction · 0.45
cbFunction · 0.45

Calls 1

fFunction · 0.50

Tested by

no test coverage detected