mirror of
https://github.com/modo-studio/SugarRecord.git
synced 2024-10-26 14:40:37 +03:00
Updated NoError uses to specify they're from Result
This commit is contained in:
parent
f135512f38
commit
4bf64e7655
@ -14,7 +14,7 @@ public extension ReactiveStorage where Self: Storage {
|
||||
|
||||
- returns: SignalProducer that executes the action.
|
||||
*/
|
||||
func rac_operation(op: (context: Context, save: Saver) -> Void) -> SignalProducer<Void, NoError> {
|
||||
func rac_operation(op: (context: Context, save: Saver) -> Void) -> SignalProducer<Void, Result.NoError> {
|
||||
return SignalProducer { (observer, disposable) in
|
||||
self.operation { (context, saver) in
|
||||
op(context: context, save: saver)
|
||||
@ -30,7 +30,7 @@ public extension ReactiveStorage where Self: Storage {
|
||||
|
||||
- returns: SignalProducer that executes the action.
|
||||
*/
|
||||
func rac_backgroundOperation(op: (context: Context, save: Saver) -> Void) -> SignalProducer<Void, NoError> {
|
||||
func rac_backgroundOperation(op: (context: Context, save: Saver) -> Void) -> SignalProducer<Void, Result.NoError> {
|
||||
return SignalProducer { (observer, disposable) in
|
||||
let priority = DISPATCH_QUEUE_PRIORITY_DEFAULT
|
||||
dispatch_async(dispatch_get_global_queue(priority, 0)) {
|
||||
|
Loading…
Reference in New Issue
Block a user