-
Notifications
You must be signed in to change notification settings - Fork 81
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
Make launchMolecule return a Job? #382
Comments
How do we do that for the one which returns a StateFlow? |
Oh sorry, this makes sense. I only used the overload with the emitter. |
We're currently modeled after the Compose APIs which don't offer a job. The best way to get one today is to create a new scope with a dedicated job on which you call launchMolecule. I would like to return a job, but the StateFlow-returning overload becomes annoying. |
This is what i'm doing now, thank you. |
I still might make this change for the emitter-based one. We actually were just talking about it internally early last week, coincidentally. For the |
It would be nice if launchMolecule would return a Job object to easily cancel it.
The text was updated successfully, but these errors were encountered: