Rx.Subscription
Last updated
Was this helpful?
Last updated
Was this helpful?
Records information about subscriptions to and unsubscriptions from observable sequences.
rx.testing.js
Subscription Constructor
##Subscription Instance Methods
##Subscription Instance Properties
##Rx.Subscription(subscribe, unsubscribe)
Creates a new subscription object with the given virtual subscription and unsubscription time.
subscribe
(Number): Virtual time at which the subscription occurred.
[unsubscribe = Number.MAX_VALUE]
(Number): Virtual time at which the unsubscription occurred.
rx.testing.js
Rx.Subscription.prototype.equals(other)
Checks whether the given subscription is equal to the current instance.
other
(Subscription): Subscription object to check for equality.
(Boolean): Returns true
if the Subscription equals the other, else false
.
rx.testing.js
Rx.Subscription.prototype.toString()
Returns a string representation of the current Subscription value.
(String): String representation of the current Subscription value.
rx.testing.js
subscribe
Gets the subscription virtual time.
(Number): The subscription virtual time.
rx.testing.js
unsubscribe
Gets the unsubscription virtual time.
(Number): The unsubscription virtual time.
rx.testing.js