Type Aliases
The following type aliases are available globally.
-
A closure type used for handling the result of an asynchronous operation.
Declaration
Swift
public typealias Callback<T> = @Sendable (Result<T, Error>) -> ()
Type Aliases Reference