src/connection-types.ts
A base type to represent a DOM connection.
SubscriptionLike
Methods |
add | ||||||
add(teardown: TeardownLogic)
|
||||||
Same as RxJS Subscription.add(). Useful, for example, for writing wrappers for the SkyhookDndService methods, which might internally listen()/subscribe to DropTargetSpec and provide a convenient callback after you hover without dropping or exiting for a specified duration. That would require the following pattern:
Parameters :
Returns :
Subscription
|
listen | ||||||
listen(mapTo: (monitor: TMonitor) => void)
|
||||||
Type parameters :
|
||||||
A connection maintains a subscription to This function is essentially RxJS Because of #2, you can happily emulate
... in which case you probably want to use the
You can also subscribe one-by-one, with
Parameters :
Returns :
Observable<O>
|
unsubscribe |
unsubscribe()
|
This method MUST be called, however you choose to, when
Returns :
void
|