What will be if I calls simultaneously [[RKClient sharedClient] get@”foo.xml” delegate:self] in two UIViewControllers? Do I have any problems?
viewController_A
{
[[RKClient sharedClient] get:@"foo.xml" delegate:self];
}
viewController_B
{
[[RKClient sharedClient] get:@"foo.xml" delegate:self];
}
If you have a look at the RKClient implementation for
get:delegate:it simply does thisand the implementation for
load:method:params:delegate:isIt’s not using any RKClient state / shared data so you won’t see a problem. The method get:delegate: is asynchronous itself so this stuff will happen in the background anyway.