MCPcopy Create free account
hub / github.com/PAIR-code/lit / add_task

Method add_task

lit_nlp/lib/utils.py:347–350  ·  view source on GitHub ↗
(self, task, *args, **kwargs)

Source from the content-addressed store, hash-verified

345 self.start_workers()
346
347 def add_task(self, task, *args, **kwargs):
348 args = args or ()
349 kwargs = kwargs or {}
350 self.put((task, args, kwargs))
351
352 def start_workers(self):
353 for _ in range(self.num_workers):

Callers

nothing calls this directly

Calls 1

putMethod · 0.80

Tested by

no test coverage detected