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

Method newtask

Lib/test/test_thread.py:42–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40class ThreadRunningTests(BasicThreadTest):
41
42 def newtask(self):
43 with self.running_mutex:
44 self.next_ident += 1
45 verbose_print("creating task %s" % self.next_ident)
46 thread.start_new_thread(self.task, (self.next_ident,))
47 self.created += 1
48 self.running += 1
49
50 def task(self, ident):
51 with self.random_mutex:

Callers 2

test_starting_threadsMethod · 0.95

Calls 1

verbose_printFunction · 0.85

Tested by

no test coverage detected