Arlodotexe / strix-music

Combine any music sources into a single library. It's your music. Play it your way.

Home Page:http://www.strixmusic.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Populate more methods in SDK ViewModels return before fully completed

Arlodotexe opened this issue · comments

commented

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.

image

Affected area

  • 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.