Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(start): start method added to observers and subjects #3066

Closed
wants to merge 1 commit into from
Closed

feat(start): start method added to observers and subjects #3066

wants to merge 1 commit into from

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Nov 11, 2017

In order to match the TC39 and WHATWG proposals, a start method has been added to the Observer interface. The start method is fired prior to the Observable initializing, and it is handed the same Subscription object that is returned from the subscribe call. This enables consumers to get a handle on the subscription and unsubscribe early in the event of a synchronous firehose that they want to stop.

resolves #3061

@benlesh
Copy link
Member Author

benlesh commented Nov 11, 2017

Oops, I'm going to need to make sure that you can't call start after it's been called once. We don't need user-land code calling it.

@rxjs-bot
Copy link

rxjs-bot commented Nov 11, 2017

Messages
📖

CJS: 1380.1KB, global: 748.6KB (gzipped: 119.9KB), min: 145.6KB (gzipped: 31.5KB)

Generated by 🚫 dangerJS

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 97.046% when pulling 6e8485c on benlesh:add_start into cd9626a on ReactiveX:master.

In order to match the TC39 and WHATWG proposals, a `start` method has been added to the `Observer` interface. The start method is fired prior to the Observable initializing, and it is handed the same `Subscription` object that is returned from the subscribe call. This enables consumers to get a handle on the subscription and unsubscribe early in the event of a synchronous firehose that they want to stop.

resolves #3061
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 97.058% when pulling f5b9e93 on benlesh:add_start into cd9626a on ReactiveX:master.

@benlesh
Copy link
Member Author

benlesh commented Jan 23, 2018

I'm not sure this is the route we're going to go with this. Closing for now.

@benlesh benlesh closed this Jan 23, 2018
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add start method to Observers
3 participants