Created
February 4, 2019 13:55
-
-
Save sisoje/5bb0184c1f1933d3d0af177dbc61c3e1 to your computer and use it in GitHub Desktop.
This file contains 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
extension NSManagedObjectContext { | |
func performTask(_ block: @escaping (NSManagedObjectContext) -> Void) { | |
perform { [unowned self] in | |
block(self) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment