Skip to content

Conversation

@steve-the-edwards
Copy link
Contributor

The AndroidUiDispatcher.Main from Compose gives us the dispatching behaviour we want:

  1. greedily dispatches all coroutines with a trampoline dispatcher before a frame callback and ensures they are drained.
  2. This will also mean we get these updates in before Compose does its frame callback to start teh Recomposer

Also as part of this I moved the AndroidRenderWorkflow code from workflow-ui/android to workflow-runtime-android since we have code there (including tests) that is about workflow-runtime specifications when running on Android (its bigger than just a UI concern).

@steve-the-edwards
Copy link
Contributor Author

Sadly it looks like the tests I wrote to verify this timing are flaky. Going to need to get stable tests for this or we won't be able to include tests for it.

@steve-the-edwards
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants