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

Method _run

crates/wasm/Lib/asyncweb.py:37–42  ·  view source on GitHub ↗
(self, send, arg)

Source from the content-addressed store, hash-verified

35 self.success(None)
36
37 def _run(self, send, arg):
38 try:
39 ret = send(arg)
40 except StopIteration:
41 return
42 ret.then(self.success, self.error)
43
44 def success(self, res):
45 self._run(self._send, res)

Callers 2

successMethod · 0.95
errorMethod · 0.95

Calls 2

sendFunction · 0.85
thenMethod · 0.45

Tested by

no test coverage detected