Skip to content

Instantly share code, notes, and snippets.

@fonkadelic
Created January 29, 2019 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fonkadelic/40a1d9275489dc159e4709db0d447f33 to your computer and use it in GitHub Desktop.
Save fonkadelic/40a1d9275489dc159e4709db0d447f33 to your computer and use it in GitHub Desktop.
public struct Parallel<Value, Error: Swift.Error> {
public typealias Callback = (Result<Value, Error>) -> Void
public let run: (@escaping Callback) -> Void
public let cancel: () -> Void
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment