SwiftactorHomeDataModel

actor HomeDataModel.CancellableBlockRunner

Structure

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

inherits{}

Members 11

  1. deinitdeinit
  2. fieldvar $defaultActor: Builtin.DefaultActorStorage+0x10
  3. fieldlet block: @Sendable (HomeDataModel.CancellableBlockRunner<A>?) async throws -> A+0x70
  4. fieldvar cancelable: HMFCancellable?+0x80
  5. fieldvar continuation: CheckedContinuation<A, Error>?
  6. fieldvar isCancelled: Bool
  7. fieldvar onCancelBlock: (@Sendable () -> ())?
  8. funccancel() -> ()
  9. funcrun() async throws -> A
  10. initHomeDataModel.CancellableBlockRunner.__allocating_init(block: @Sendable (HomeDataModel.CancellableBlockRunner<A>?) async throws -> A) -> HomeDataModel.CancellableBlockRunner<A>
  11. varvar unownedExecutor: UnownedSerialExecutor { get }
actor CancellableBlockRunner<A> {
    let block: @Sendable (_: HomeDataModel.CancellableBlockRunner<A>?) async throws -> A
    var cancelable: (any __C.HMFCancellable)?
    var continuation: Swift.CheckedContinuation<A, any Swift.Error>?
    var onCancelBlock: (@Sendable () -> ())?
    var isCancelled: Swift.Bool

    init(block: @escaping @Sendable (_: HomeDataModel.CancellableBlockRunner<A>?) async throws -> A)
    func run() async throws -> A
    func cancel()

    var unownedExecutor: Swift.UnownedSerialExecutor {
        get
    }

    deinit
}