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