Skip to content

Instantly share code, notes, and snippets.

@srdanrasic
Last active February 19, 2017 14:29
Show Gist options
  • Save srdanrasic/6d162d9bf949c07d8e6de2d6f0ca2466 to your computer and use it in GitHub Desktop.
Save srdanrasic/6d162d9bf949c07d8e6de2d6f0ca2466 to your computer and use it in GitHub Desktop.
open class Client {
open func response<Resource, Error: Swift.Error>(for request: Request<Resource, Error>) -> Signal<Resource, Client.Error>
}
public class SafeClient {
public let errors = SafeSignal<UserFriendlyError>()
public init(wrapping client: Client)
public func response<Resource, Error: Swift.Error>(for request: Request<Resource, Error>) -> SafeSignal<Resource>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment