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

Cancel pollable as It does in Swift-IDX #176

Open
GaniduAsh opened this issue Jan 4, 2023 · 1 comment
Open

Cancel pollable as It does in Swift-IDX #176

GaniduAsh opened this issue Jan 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@GaniduAsh
Copy link

GaniduAsh commented Jan 4, 2023

Describe the feature request?

I am in the process of developing a Flutter plugin for Okta-idx which links to native kotlin SDK and swift SDK

Noticed there is no way to cancel polling behavior in android as it does in iOS SDK

what would be the ideal way to cancel polling behavior in android rather than using a Job as it does in sample app

New or Affected Resource(s)

com.okta.android:okta-idx-kotlin:2.1.0

Provide a documentation link

No response

Additional Information?

No response

@GaniduAsh GaniduAsh added the enhancement New feature or request label Jan 4, 2023
@rajdeepnanua-okta
Copy link
Contributor

Hi @GaniduAsh,

That's currently the ideal way to cancel polling. Polling is performed through a suspend function, which allows the users to cancel it. But, managing the scope that the suspend function runs in is the responsibility of the caller. iOS and Android concurrency models work slightly differently, so differences like these can come up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants