Skip to content

Comments

Update Application.swift#129

Merged
0xLeif merged 1 commit intocodex/update-docc.yml-and-package.swift-for-spm-pluginfrom
0xLeif-patch-3
Jun 4, 2025
Merged

Update Application.swift#129
0xLeif merged 1 commit intocodex/update-docc.yml-and-package.swift-for-spm-pluginfrom
0xLeif-patch-3

Conversation

@0xLeif
Copy link
Owner

@0xLeif 0xLeif commented Jun 4, 2025

No description provided.

@0xLeif 0xLeif requested a review from Copilot June 4, 2025 03:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds @MainActor isolation to the static logger property in Application.swift to ensure main‐actor confinement for logging on supported platforms.

  • Annotate logger with @MainActor
  • Change applies only on non-Linux and non-Windows builds under the existing conditional
Comments suppressed due to low confidence (1)

Sources/AppState/Application/Application.swift:17

  • Marking a global logger as @MainActor will force every logging call from background threads to hop to the main actor, which may introduce unnecessary context switches. Consider whether actor isolation is required for the logger, or if the underlying logging API is already thread-safe and can be left unannotated.
@MainActor

@0xLeif 0xLeif merged commit 13dd74c into codex/update-docc.yml-and-package.swift-for-spm-plugin Jun 4, 2025
3 checks passed
@0xLeif 0xLeif deleted the 0xLeif-patch-3 branch June 4, 2025 03:15
0xLeif added a commit that referenced this pull request Jun 7, 2025
* Run documentation workflow on every push

* Update docc.yml

* Update docc.yml

* Update docc.yml

* Update Application.swift (#129)

* Update macOS.yml

* Update macOS.yml

* Update ubuntu.yml

* Update docc.yml

* Update ubuntu.yml

* Fix docc workflow (#130)

* Fix docc workflow

* Update docc.yml

* Update ubuntu.yml
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.

1 participant