Rx.Subscription

Records information about subscriptions to and unsubscriptions from observable sequences.

Location

  • rx.testing.js

Subscription Constructor ##

Subscription Instance Methods ##

Subscription Instance Properties ##

Subscription Constructor ##

Rx.Subscription(subscribe, unsubscribe)

# arrow-up-right

Creates a new subscription object with the given virtual subscription and unsubscription time.

Arguments

  1. subscribe (Number): Virtual time at which the subscription occurred.

  2. [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)

# arrow-up-right

Checks whether the given subscription is equal to the current instance.

Arguments

  1. 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()

# arrow-up-right

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

# arrow-up-right

Gets the subscription virtual time.

Returns

(Number): The subscription virtual time.

Example

Location

  • rx.testing.js

unsubscribe

# arrow-up-right

Gets the unsubscription virtual time.

Returns

(Number): The unsubscription virtual time.

Example

Location

  • rx.testing.js

Last updated