How to declare escaping in completion in callback in Swift

Issue #464

typealias Completion = (Result<User, Error>) -> Void

func validate(completion: @escaping Completion, then: (String, String, @escaping Completion) -> Void) {}
Written by

I’m open source contributor, writer, speaker and product maker.

Start the conversation