Created
March 16, 2017 05:48
Revisions
-
markst created this gist
Mar 16, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ class MyOperation: Operation { open func execute() { let realm = try! Realm(configuration: Realm.Configuration(inMemoryIdentifier: "MyInMemoryRealm")) // Do some stuff networkClient.request(method: method, url: url, payload: payload) { statusCode, responseData, networkError in // Now do some stuff on original operation threafd } } }