MCPcopy Index your code
hub / github.com/python/cpython / submit

Method submit

Lib/concurrent/futures/_base.py:593–602  ·  view source on GitHub ↗

Submits a callable to be executed with the given arguments. Schedules the callable to be executed as fn(*args, **kwargs) and returns a Future instance representing the execution of the callable. Returns: A Future representing the given call.

(self, fn, /, *args, **kwargs)

Source from the content-addressed store, hash-verified

591 """This is an abstract base class for concrete asynchronous executors."""
592
593 def submit(self, fn, /, *args, **kwargs):
594 """Submits a callable to be executed with the given arguments.
595
596 Schedules the callable to be executed as fn(*args, **kwargs) and returns
597 a Future instance representing the execution of the callable.
598
599 Returns:
600 A Future representing the given call.
601 """
602 raise NotImplementedError()
603
604 def map(self, fn, *iterables, timeout=None, chunksize=1, buffersize=None):
605 """Returns an iterator equivalent to map(fn, iter).

Callers 2

mapMethod · 0.95
result_iteratorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected