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

Method task

Lib/test/_test_multiprocessing.py:2011–2019  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2009 self._finalizer = weakref.finalize(self, finalize, threads)
2010
2011 def task(self):
2012 pid = os.getpid()
2013 self.started.append(pid)
2014 try:
2015 self.f(*self.args)
2016 finally:
2017 self.finished.append(pid)
2018 self._can_exit.wait(30)
2019 assert self._can_exit.is_set()
2020
2021 def wait_for_started(self):
2022 while len(self.started) < self.n:

Callers

nothing calls this directly

Calls 4

appendMethod · 0.45
fMethod · 0.45
waitMethod · 0.45
is_setMethod · 0.45

Tested by

no test coverage detected