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

AsyncReactiveProperty.WaitAsync() doesn't trigger under certain circumstances #444

Closed
faveris opened this issue Feb 12, 2023 · 1 comment · Fixed by #445
Closed

AsyncReactiveProperty.WaitAsync() doesn't trigger under certain circumstances #444

faveris opened this issue Feb 12, 2023 · 1 comment · Fixed by #445

Comments

@faveris
Copy link
Contributor

faveris commented Feb 12, 2023

I've found a case when AsyncReactiveProperty.WaitAsync() doesn't trigger: code is not passing "await" line despite the property value has changed. This is a rare case, but it reproduces for 100% of tries if requirements are met. I've attached a sample Unity project, to reproduce the issue you need to:

  1. Open AsyncPropertyTestScene.unity
  2. Enter play mode
  3. Check the console - two listeners are triggered the first time value has changed and only one listener is triggered the second time

Sample project: AsyncPropertyTest.zip

@github-actions
Copy link
Contributor

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.

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 a pull request may close this issue.

2 participants