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

Use swift concurrency to remove hang #190

Merged
merged 2 commits into from
Mar 24, 2024

Conversation

shp7724
Copy link
Contributor

@shp7724 shp7724 commented Mar 23, 2024

The previous fetchRemindersSynchronously blocks the main thread whenever you update the data store, resulting in an unpleasant behavior. This PR uses async/await syntax to guarantee forward progress.

Copy link
Owner

@DamascenoRafael DamascenoRafael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an awesome contribution @shp7724!! Thanks for helping this project 👏

I added some small questions and suggestions, please take a look when possible

reminders-menubar/AppDelegate.swift Outdated Show resolved Hide resolved
reminders-menubar/Models/RemindersData.swift Outdated Show resolved Hide resolved
reminders-menubar/Models/RemindersData.swift Outdated Show resolved Hide resolved
@shp7724
Copy link
Contributor Author

shp7724 commented Mar 24, 2024

@DamascenoRafael Thanks for the detailed review. PTAL: b32036a.

@DamascenoRafael DamascenoRafael merged commit 02cd6ad into DamascenoRafael:master Mar 24, 2024
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 this pull request may close these issues.

2 participants