Skip to content

Instantly share code, notes, and snippets.

Oyvindkg / Result.swift
Last active Feb 6, 2017
Swift 3: An enum used for error handling in asynchronous calls
View Result.swift
Represents the result of an asynchronous call.
Can be either a successfull result containing a return value, or a failure containing an error.
public enum Result<Value> {
case failure(error: Error)
case success(value: Value)