Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CallChainService

Index

Constructors

Methods

Constructors

Methods

  • create(callback: ((boolean: any) => void)): AfterAction
  • Creates a call chain Subject that performs an action when a value is emitted into it.

    Useful for creating call chains for methods like [assign Task]{@link AssignTaskService#assign}. By using this function you don't have to handle the Subject logic and can only focus on the callback. This can make the code easier to understand as the intent is not obscured by the Subject handling.

    Parameters

    • callback: ((boolean: any) => void)

      the function that should be executed when a value is emitted into the Subject. The emitted value is passed as the argument.

        • (boolean: any): void
        • Parameters

          • boolean: any

          Returns void

    Returns AfterAction

    a subscribed Subject instance that performs the provided callback on the first emission and then completes

Generated using TypeDoc