I searched for a many days, but I can not find it. What would be the equivalent of the following MagicalRecord statement in Realm.io?
[MagicalRecord saveUsingCurrentThreadContextWithBlock:^(NSManagedObjectContext *localContext) {
// Save block
} completion:^(BOOL success, NSError *error) {
// Completion block
}];
I need "Save block", and when it finish, execute "Completion block"
Thanks!!