<NME> Result.swift
<BEF> ADDFILE
<MSG> Make template client initialization async (#23)


<DFF> @@ -0,0 +1,28 @@
+//
+//  Result.swift
+//  TemplateKit
+//
+//  Created by Matias Cudich on 8/22/16.
+//  Copyright © 2016 Matias Cudich. All rights reserved.
+//
+
+import Foundation
+
+enum Result<ResultType> {
+  case success(ResultType)
+  case error(Error)
+
+  var payload: ResultType? {
+    if case let .success(result) = self {
+      return result
+    }
+    return nil
+  }
+
+  var error: Error? {
+    if case let .error(error) = self {
+      return error
+    }
+    return nil
+  }
+}

Make template client initialization async (#23)