SwiftclassScreenSharingKit
class ScreenSharingKit.AsyncQueue
Members 9
- deinit
deinit - field
let nucleus: ScreenSharingKit.AsyncQueue.Nucleus+0x10 - func
cancelAllQueuedTasks() async -> () - func
cancelAllTasks() async -> () - func
enqueue<A where A: Sendable>(respectingCancelAll: Bool, name: String?, priority: TaskPriority?, _: __owned @isolated(any) () async throws -> A) -> Task<A, Error> - func
requestCancelAllQueuedTasks() -> () - func
requestCancelAllTasks() -> () - func
run<A where A: Sendable>(respectingCancelAll: Bool, name: String?, priority: TaskPriority?, _: __owned @isolated(any) () async throws -> A) async throws -> A - init
ScreenSharingKit.AsyncQueue.__allocating_init() -> ScreenSharingKit.AsyncQueue
Header
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 }