Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Asynchronous Execution of Operations

Asynchronous Execution of Operations

You can execute Backend Services iOS SDK operations asynchronously using either a block or target and selector.

You will notice that each method is available in two flavors:

​1. With block:

[dataStore fetchAll:[Books class] block:^(NSArray *result, NSError *error) {
...
}];

​2. With target and selector:

EVDataStore *dataStore = [EVDataStore sharedInstance];
[dataStore fetchAll:[Books class] target:self selector:@selector(requestCompletedWithResult:error:)];

The selector to call should have the following signature:

- (void)requestCompletedWithResult:(id)result error:(NSError*)error
{
   ...
}

The error will be nil on success.

Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.