Skip to content

Instantly share code, notes, and snippets.

@lucasecf
Created March 4, 2018 17:43
Show Gist options
  • Save lucasecf/4f78dd9bb97ef9f017027d769eee88d0 to your computer and use it in GitHub Desktop.
Save lucasecf/4f78dd9bb97ef9f017027d769eee88d0 to your computer and use it in GitHub Desktop.
protocol Dispatcher {
 associatedtype Output
  associatedtype Request
  func execute(request: Request, success: (Output) -> Void, failure: (Error) -> Void)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment