-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Allow addProgressNotification when using async initializer #7763
Comments
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
The text was updated successfully, but these errors were encountered: