AsyncLoaderTargetAction

public class AsyncLoaderTargetAction<Input, Output> : AsyncLoaderAbstract<Input, Output>, @unchecked Sendable

通用异步target-action加载器,兼容Output | Error | Result

  • Undocumented

    Declaration

    Swift

    public init(target: AnyObject?, action: Selector)
  • 指定输入,异步加载输出

    Declaration

    Swift

    override public func load(_ input: Input, completion: @escaping @Sendable (Result<Output, Error>) -> Void)