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

Method to only cancel async calls without destroying CustomerSessions instance. #624

Merged
merged 2 commits into from
Dec 18, 2018

Conversation

umarhussain15
Copy link
Contributor

Added a static method to cancel async calls without clearing the user session.
This will be helpful when a view is destroyed but the network call has not ended, to avoid null pointer exceptions in callbacks for views references.
In reference to my issue #576

… session.

This will be helpful when a view is destroyed but the network call has not ended, to avoid null pointer exceptions.
…Callbacks() for code reuse.

Code refactored to place clearInstance() and cancelCallbacks() together.
@mshafrir-stripe mshafrir-stripe merged commit 487146c into stripe:master Dec 18, 2018
@mshafrir-stripe mshafrir-stripe mentioned this pull request Jan 10, 2019
@ksun2-stripe ksun2-stripe mentioned this pull request Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants