Open rowungiles opened 2 years ago
I'm running into the same issue. I'm about to move away from Async/Await for opening the realm until I can track downloads.
Hi @captn590 @rowungiles Thanks for reaching. We are taking a look at this and discussing this with the team, so we can come up with the best solution (API) for this.
Was there ever a resolution here, or is this another one of those, "we'll get back to you in 7 years to tell you we still don't have an answer" issues?
AsyncOpen can take a long time to "bootstrap changesets" and not being able to show progress to the user is very frustrating.
Please fill this hole--enough talking; get the feature shipped!
That is fair criticism. I'll see if we can add it as part of the project that adds support for bootstrap progress notifications.
Problem
When using
let realm = try await Realm(configuration: configuration, downloadBeforeOpen: .once)
I'd like to track the download progress of that sync.Looking at the async initializer that isn't possible as task is hidden (as is callbackQueue):
Solution
With a goal of minimising design changes, the smallest change I can think of is passing in a block and a queue to set internally on the task returned from
RLMRealm.asyncOpen
.How important is this improvement for you?
Would be a major improvement