MCPcopy Index your code
hub / github.com/bugy/script-server / __init__

Method __init__

src/react/observable.py:168–172  ·  view source on GitHub ↗
(self, source_observable, map_function)

Source from the content-addressed store, hash-verified

166
167class _MappedPipe(PipedObservable):
168 def __init__(self, source_observable, map_function):
169 super().__init__(source_observable)
170
171 self.map_function = map_function
172 source_observable.subscribe(self)
173
174 def on_next(self, data):
175 mapped_data = self.map_function(data)

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
subscribeMethod · 0.45

Tested by

no test coverage detected