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

Add support for coroutines #23

Open
ryanmoelter opened this issue Nov 30, 2021 · 0 comments
Open

Add support for coroutines #23

ryanmoelter opened this issue Nov 30, 2021 · 0 comments
Assignees

Comments

@ryanmoelter
Copy link
Contributor

Some ideas:

  • Have a suspending AnimatorSetBuilder.start() that suspends until the animation is complete
    • Handle cancellation, so animations stop when e.g. the current screen is hidden
  • Maybe have a non-suspending AnimatorSetBuilder.startInScope(CoroutineScope) for when we don't want to call launch directly?
  • Can refactor all of blend to be based on coroutines, and the regular, non-suspending start() can use GlobalScope under the hood
    • Should we deprecate non-suspending start()?
@ryanmoelter ryanmoelter self-assigned this Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant