Unique subscription name. It helps with diagnosing subscription leaks, via method getStat, and provides additional details during error handling. The name should help identify place in the code where the subscription was created.
Subscription-cancel callback, to be notified on subscription explicit cancel call, or when cancelled implicitly via cancelAll.
This is mostly for internal usage, and has no protection against errors, should the handler throw any.
Calling / this
context for the subscription callback function.
Standard way of passing in context is this way:
event.subscribe(func.bind(this))
With this option you can also do it this way:
event.subscribe(func, {thisArg: this})
Generated using TypeDoc
Options that can be passed into method subscribe.