Type MethodConcurrency

withCancellationHandler(handler:operation:)

  • Available when Success is Never and Failure is Never

  • Deprecated

  • iOS 13.0+
  • macOS 10.15+
  • tvOS 13.0+
  • watchOS 6.0+
static func withCancellationHandler<T>(handler: () -> Void, operation: () async throws -> T) async rethrows -> T