8.1.1.37. extend¶
- Dispatcher.extend(*blues, memo=None)[source]
Extends Dispatcher calling each deferred operation of given Blueprints.
- Parameters:
blues (Blueprint | schedula.dispatcher.Dispatcher) – Blueprints or Dispatchers to extend deferred operations.
memo (dict[T,schedula.utils.blue.Blueprint|Dispatcher]) – A dictionary to cache Blueprints and Dispatchers.
- Returns:
Self.
- Return type:
——————————————————————–
Example:
>>> import schedula as sh >>> dsp = sh.Dispatcher() >>> dsp.add_func(callable, ['is_callable']) 'callable' >>> blue = sh.BlueDispatcher().add_func(len, ['length']) >>> dsp = sh.Dispatcher().extend(dsp, blue)