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