Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PromiseSubscriptionProxy

Implementation of SubscriptionProxy which works with Promise and adds ability to unsubscribe from it.

Hierarchy

  • PromiseSubscriptionProxy

Implements

Index

Properties

Methods

Properties

Private isAlive

isAlive: boolean = true

Methods

attach

  • attach(target: Promise<any>, completeAction: function, errorAction?: function): any
  • inheritdoc

    Parameters

    • target: Promise<any>
    • completeAction: function
        • (value: any): any
        • Parameters

          • value: any

          Returns any

    • Optional errorAction: function
        • (error: any): any
        • Parameters

          • error: any

          Returns any

    Returns any

detach

  • detach(subscription: any): void

Static isAcceptable

  • isAcceptable(target: any): boolean
  • Returns true if this proxy type can subscribe to passed object. false otherwise.

    Parameters

    • target: any

    Returns boolean

Generated using TypeDoc