MCPcopy Create free account
hub / github.com/dchevell/flask-executor / add_default_done_callback

Method add_default_done_callback

flask_executor/executor.py:261–271  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 2

init_appMethod · 0.95

Calls

no outgoing calls

Tested by 1