SwiftactorHMFoundation

actor HMFoundation.AsyncSerialQueue

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 9

  1. deinitdeinit
  2. fieldvar $defaultActor: Builtin.DefaultActorStorage+0x10
  3. fieldvar continuations: CollectionsInternal.Deque<CheckedContinuation<(), Never>>
  4. fieldlet internalFatalError: (@autoclosure () -> String, StaticString, UInt) -> Any
  5. fieldvar isProcessing: Bool+0x70
  6. funcperform<A where A: Sendable>(@Sendable () async throws -> A) async -> Task<A, Error>
  7. funcperformAndWait<A where A: Sendable>(@Sendable () async throws -> A) async throws -> A
  8. initHMFoundation.AsyncSerialQueue.__allocating_init() -> HMFoundation.AsyncSerialQueue
  9. varvar unownedExecutor: UnownedSerialExecutor { get }
actor AsyncSerialQueue {
    var isProcessing: Swift.Bool
    var continuations: CollectionsInternal.Deque<Swift.CheckedContinuation<(), Swift.Never>>
    let internalFatalError: (@autoclosure () -> Swift.String, Swift.StaticString, Swift.UInt) -> Any

    init()
    func performAndWait<A>(_: @Sendable () async throws -> A) async throws -> A where A: Swift.Sendable
    func perform<A>(_: @escaping @Sendable () async throws -> A) async -> Swift.Task<A, any Swift.Error> where A: Swift.Sendable

    var unownedExecutor: Swift.UnownedSerialExecutor {
        get
    }

    deinit
}