Skip to content

Conversation

@Daggerpov
Copy link
Owner

@Daggerpov Daggerpov commented Dec 3, 2025

Building on #279

Applying learning from:

Main changes:

  • Annotating entire classes with @MainActor, instead of dispatching through await MainActor.run{} or DispatchQueue.main.async
  • Always using .task{} on views when possible
  • Task { @MainActor in syntax instead of an internal dispatch the legacy way through GCD
  • loading cached objects on disk in the background thread
  • finish converting all view models to @MainActor (and make their calls async)
  • Task.detached{} - > Task { @MainActor in

In progress:

WIP.

@Daggerpov Daggerpov changed the title More actors for concurrency Modern Swift Concurrency (+actors, +tasks, -GCD, -Combine) Dec 5, 2025
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