Registers callable to be attached to all newly created futures. When a callable is submitted to the executor, :meth:`concurrent.futures.Future.add_done_callback` is called for every default callable that has been set." :param fn: The callable to be added to the list
(self, fn)
| 259 | return ExecutorJob(executor=self, fn=fn) |
| 260 | |
| 261 | def add_default_done_callback(self, fn): |
| 262 | """Registers callable to be attached to all newly created futures. When a |
| 263 | callable is submitted to the executor, |
| 264 | :meth:`concurrent.futures.Future.add_done_callback` is called for every default |
| 265 | callable that has been set." |
| 266 | |
| 267 | :param fn: The callable to be added to the list of default done callbacks for new |
| 268 | Futures. |
| 269 | """ |
| 270 | |
| 271 | self._default_done_callbacks.append(fn) |
no outgoing calls