AsyncLoaderBlock
public class AsyncLoaderBlock<Input, Output> : AsyncLoaderAbstract<Input, Output>, @unchecked Sendable
通用异步block加载器
-
Undocumented
Declaration
Swift
public init(_ block: @escaping @Sendable (_ input: Input, _ completion: @escaping @Sendable (Result<Output, Error>) -> Void) -> Void)
-
指定输入,异步加载输出
Declaration
Swift
override public func load(_ input: Input, completion: @escaping @Sendable (Result<Output, Error>) -> Void)