因此,从我收集到的信息来看,在Alamofire和Combine上,我们现在可以这样做:如果我们想要将错误映射到AFError以外的自定义类型,这意味着我们将以如下方式结束: case alamofire(wrappedDifferentError.malformedURL).eraseToAnyPublisher()
return A
我创建了这样一个演示应用程序: var body: some Viewjsonplaceholder.typicode.com/posts", method: .get, parameters: nil) .publishDecodable(unknown context at $7ff81332d748).Inner<Combine