SwiftclassScreenSharingKit

class ScreenSharingKit.AsyncQueue

Members 9

  1. deinitdeinit
  2. fieldlet nucleus: ScreenSharingKit.AsyncQueue.Nucleus+0x10
  3. funccancelAllQueuedTasks() async -> ()
  4. funccancelAllTasks() async -> ()
  5. funcenqueue<A where A: Sendable>(respectingCancelAll: Bool, name: String?, priority: TaskPriority?, _: __owned @isolated(any) () async throws -> A) -> Task<A, Error>
  6. funcrequestCancelAllQueuedTasks() -> ()
  7. funcrequestCancelAllTasks() -> ()
  8. funcrun<A where A: Sendable>(respectingCancelAll: Bool, name: String?, priority: TaskPriority?, _: __owned @isolated(any) () async throws -> A) async throws -> A
  9. initScreenSharingKit.AsyncQueue.__allocating_init() -> ScreenSharingKit.AsyncQueue
class AsyncQueue {
    actor Nucleus {
        struct Work {
            let id: Foundation.UUID
            let task: any ScreenSharingKit.AnyTask
            let respectsCancelAll: Swift.Bool
            let priorityPump: ScreenSharingKit.PriorityPump
            let startGate: ScreenSharingKit.AsyncGate
            let finishGate: ScreenSharingKit.AsyncGate
        }
        enum Command {
            case enqueue(ScreenSharingKit.AsyncQueue.Nucleus.Work)
            case cancelAllTasks(completionGate: ScreenSharingKit.AsyncGate?)
            case cancelAllQueuedTasks(completionGate: ScreenSharingKit.AsyncGate?)
        }
        var currentWorkItem: ScreenSharingKit.AsyncQueue.Nucleus.Work?
        var queuedWork: [ScreenSharingKit.AsyncQueue.Nucleus.Work]
        let executionLoopStream: Swift.AsyncStream<ScreenSharingKit.AsyncQueue.Nucleus.Work>
        let executionLoopContinuation: Swift.AsyncStream<ScreenSharingKit.AsyncQueue.Nucleus.Work>.Continuation
        var executionLoop: Swift.Task<(), any Swift.Error>?
        let commandLoopStream: Swift.AsyncStream<ScreenSharingKit.AsyncQueue.Nucleus.Command>
        let commandLoopContinuation: Swift.AsyncStream<ScreenSharingKit.AsyncQueue.Nucleus.Command>.Continuation
        var commandLoop: Swift.Task<(), Swift.Never>?
    }
    let nucleus: ScreenSharingKit.AsyncQueue.Nucleus

    init()

    final func cancelAllTasks() async
    final func cancelAllQueuedTasks() async
    final func requestCancelAllTasks()
    final func requestCancelAllQueuedTasks()
    final func run<A>(respectingCancelAll: Swift.Bool, name: Swift.String?, priority: Swift.TaskPriority?, _: consuming @isolated(any) () async throws -> A) async throws -> A where A: Swift.Sendable
    final func enqueue<A>(respectingCancelAll: Swift.Bool, name: Swift.String?, priority: Swift.TaskPriority?, _: consuming @isolated(any) () async throws -> A) -> Swift.Task<A, any Swift.Error> where A: Swift.Sendable

    deinit
}