Subscription
Example:
let emitter = new Observable;
let log = (v) => console.log("Received:", v);
let subscription = new Subscription(emitter, log);
assert(!subscription.isActive());
subscription.activate();
assert(subscription.isActive());
subscription.terminate();
assert(!subscription.isActive());
Constructor Summary
| Public Constructor | ||
| public |
constructor(source: Observable, subscriber: function) |
|
Method Summary
| Public Methods | ||
| public |
activate() Equivalent to |
|
| public |
Equivalent to |
|
| public |
Equivalent to |
|
Public Constructors
public constructor(source: Observable, subscriber: function) source
Params:
| Name | Type | Attribute | Description |
| source | Observable | ||
| subscriber | function |