https://github.com/muukii/realm-easybackground
https://github.com/muukii/realm-easybackground
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/muukii/realm-easybackground
- Owner: muukii
- License: mit
- Created: 2016-02-12T13:47:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-27T03:23:33.000Z (almost 9 years ago)
- Last Synced: 2025-03-14T10:38:50.923Z (about 2 months ago)
- Language: C++
- Size: 18.5 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Realm-EasyBackground
[](https://travis-ci.org/muukii/Realm-EasyBackground) [](http://cocoapods.org/pods/Realm-EasyBackground) [](http://cocoapods.org/pods/Realm-EasyBackground) [](http://cocoapods.org/pods/Realm-EasyBackground)## Usage
```swift
import Realm_EasyBackground
let realm = try! Realm()
realm.writeBackground { realm in
// Write on background thread
let person = Person()
try person.update(json)
realm.add(person, update: true)
}
``````swift
import Realm_EasyBackground
let realm = try! Realm()
realm.writeBackground ({ realm in
// Write on background thread
let person = Person()
try person.update(json)
realm.add(person, update: true)},
completion { (error: ErrorType?) in// Callback on main thread
})
```## Requirements
## Installation
Realm-EasyBackground is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:```ruby
pod "Realm-EasyBackground"
```## Author
muukii, [email protected]## License
Realm-EasyBackground is available under the MIT license. See the LICENSE file for more info.