fixes for Swift 6 and threading concerns

This commit is contained in:
2026-06-02 12:09:44 -07:00
parent 2fa4bfd45e
commit 6d3a0930a1
327 changed files with 1596 additions and 199 deletions
@@ -8,7 +8,7 @@ import SwiftUI
import LyrebirdSynth
/// A panel that renders one ``LyrebirdProcessView`` per currently-running
/// ``LyrebirdProcess`` owned by a ``LyrebirdEventList``.
/// `LyrebirdProcess` owned by a `LyrebirdEventList`.
///
/// Processes appear when they start (transition to running/releasing) and
/// disappear when they finish (auto-free or are killed). Identity is tracked
@@ -43,7 +43,7 @@ import LyrebirdSynth
/// ## Threading
///
/// The view body and refresh loop run on the main thread.
/// ``LyrebirdEventList/allProcesses`` and ``LyrebirdProcess/isRunning`` are
/// `LyrebirdEventList.allProcesses` and `LyrebirdProcess.isRunning` are
/// documented as safe to read from any thread — the main-thread read here is
/// trivially valid.
public struct LyrebirdRunningProcessesView: View {
@@ -61,11 +61,11 @@ public struct LyrebirdRunningProcessesView: View {
/// Creates a running-processes panel bound to the given event list.
///
/// - Parameters:
/// - eventList: The ``LyrebirdEventList`` whose running processes will be
/// - eventList: The `LyrebirdEventList` whose running processes will be
/// rendered. Only processes registered with this list are visible —
/// standalone processes (those not owned by an event list) do not
/// appear here.
/// - engine: The ``SynthesisEngine`` forwarded to each child
/// - engine: The `SynthesisEngine` forwarded to each child
/// ``LyrebirdProcessView`` for its **Start** button.
public init(
eventList: LyrebirdEventList,
@@ -164,8 +164,8 @@ extension LyrebirdRunningProcessesView {
/// with `.close()`.
///
/// - Parameters:
/// - eventList: The ``LyrebirdEventList`` to track.
/// - engine: The ``SynthesisEngine`` forwarded to each child
/// - eventList: The `LyrebirdEventList` to track.
/// - engine: The `SynthesisEngine` forwarded to each child
/// ``LyrebirdProcessView``.
/// - title: Window title bar text. Defaults to `"<eventList.id> — Running"`.
/// - width: Initial window width in points. Defaults to `360`.