Created
March 16, 2017 05:48
-
-
Save markst/98474657682dd041deff63d384e74ba2 to your computer and use it in GitHub Desktop.
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 characters
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 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment