iOS, Swift, Swiftui, Mobile, Mobile App Development.
func callAsFunction(input: Input) async throws -> Output } Just for ergonomics reasons, let’s also have this. extension Service where Input == Void{ func callAsFunction() async throws -> Output { try await callAsFunction(input: ()) } } Having a single interface, we can have something like this.