Skip to content

Commit 5f02149

Browse files
committed
updated read me.
1 parent 5f53335 commit 5f02149

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ A simple core data wrapper with synchronous and asynchronous helper functions. I
2929
* [Fetch synchronous operation](#Fetch-synchronous-operation)
3030
* [Fetch all entities synchronous operation](#Fetch-all-entities-synchronous-operation)
3131
* [Delete synchronous operation](#Delete-synchronous-operation)
32-
* [Delete all entities synchronous operation](#Delete-all-synchronous-operation)
32+
* [Delete all entities synchronous operation](#Delete-all-entities-synchronous-operation)
3333
* [Update synchronous operation](#Update-synchronous-operation)
34-
* [Update all entities synchronous operation](#Update-all-synchronous-operation)
34+
* [Update all entities synchronous operation](#Update-all-entities-synchronous-operation)
3535
* [Count synchronous operation](#Count-synchronous-operation)
3636
* [Fetch properties synchronously](#Fetch-properties-synchronously)
3737
* [Math operation synchronously](#Math-operation-synchronously)
@@ -41,13 +41,15 @@ A simple core data wrapper with synchronous and asynchronous helper functions. I
4141
* [Fetch asynchronous operation](#Fetch-asynchronous-operation)
4242
* [Fetch all entities asynchronous operation](#Fetch-all-entities-asynchronous-operation)
4343
* [Delete asynchronous operation](#Delete-asynchronous-operation)
44-
* [Delete all entities asynchronous operation](#Delete-all-asynchronous-operation)
44+
* [Delete all entities asynchronous operation](#Delete-all-entities-asynchronous-operation)
4545
* [Update asynchronous operation](#Update-asynchronous-operation)
46-
* [Update all entities asynchronous operation](#Update-all-asynchronous-operation)
46+
* [Update all entities asynchronous operation](#Update-all-entities-asynchronous-operation)
4747
* [Count asynchronous operation](#Count-asynchronous-operation)
4848
* [Fetch properties asynchronously](#Fetch-properties-asynchronously)
4949
* [Math operation asynchronously](#Math-operation-asynchronously)
5050
* [Background context asynchronous operations](#Background-context-asynchronous-operations)
51+
* [Save main context](#Save-main-context)
52+
* [Save background context](#Save-background-context)
5153
* [Author](#Author)
5254
* [License](#License)
5355

@@ -257,6 +259,20 @@ coreDataWrapper.addAsyncOf(type: Person.self, context: newBgContext, completion:
257259
})
258260
```
259261

262+
## Save main context
263+
```ruby
264+
coreDataWrapper.saveMainContext(isSync: false, completion: {
265+
266+
})
267+
```
268+
269+
## Save background context
270+
```ruby
271+
coreDataWrapper.saveBGContext(context: bgContext, isSync: false, completion: {
272+
273+
})
274+
```
275+
260276
## Author
261277

262278
[Dilip Parmar](https://github.com/Dilip-Parmar)

0 commit comments

Comments
 (0)