Class: Subscription
Represents a wrapper of a calling function. Used by Subject. Very similar to RxJS Subscription
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Subscription(callback
, subject
): Subscription
Parameters
Name | Type |
---|---|
callback | SubscriptionCallback |
subject | Subject |
Returns
Defined in
Properties
callback
• Private
Readonly
callback: SubscriptionCallback
Defined in
subject
• Private
Readonly
subject: Subject
Defined in
Methods
compare
▸ compare(subscription
): boolean
Parameters
Name | Type |
---|---|
subscription | Subscription |
Returns
boolean
Defined in
unsubscribe
▸ unsubscribe(): void
Returns
void
Defined in
update
▸ update(event
): void
| Promise
\<void
>
Parameters
Name | Type |
---|---|
event | Event |
Returns
void
| Promise
\<void
>