There's a lot of async methods in the SDK's ViewModel that uses SynchronizationContext.Post(). This method only supports an Action, and does not wait for an async lambda to complete. The result is that the public SDK method's Task completes before execution is actually finished.
Affected area
[X] Strix Music SDK
[ ] Strix Music App
Regression
No response
Steps to reproduce
Run an async method such as LibraryViewModel.InitTrackCollectionAsync(). When the task completes, the tracks will not be populated.
Visual repro steps
No response
Expected behavior
The task should not complete until all code has finished running.
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item.
Describe the bug
There's a lot of async methods in the SDK's ViewModel that uses
SynchronizationContext.Post()
. This method only supports an Action, and does not wait for an async lambda to complete. The result is that the public SDK method's Task completes before execution is actually finished.Affected area
Regression
No response
Steps to reproduce
Visual repro steps
No response
Expected behavior
The task should not complete until all code has finished running.
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item.