MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / __init__

Method __init__

tests/testutils.py:139–142  ·  view source on GitHub ↗
(self, protocol=None)

Source from the content-addressed store, hash-verified

137
138class _Worker:
139 def __init__(self, protocol=None):
140 self.protocol = protocol
141 self.pool = ProcessPoolExecutor(max_workers=1)
142 self.pool.submit(id, 42).result() # start the worker process
143
144 def run(self, func, *args, **kwargs):
145 """Synchronous remote function call"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected