I have a protocol method:
func do() async throws
In the implementation I must call one function returning AnyPublisher<Void, Error>
.
How should my do()
body look to basically convert AnyPublisher<Void, Error>
return value to async throws
?