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)
| 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). |
no outgoing calls
no test coverage detected