は私はOP-1のように3回としてシリアル化されたタスク(のためのgetSomethingsWithResultWithCompletion
メソッドを実行したいOP2に依存例えば完了continuation-順次作り方シリアル化された非同期タスク
でいくつかの操作タスクを実行したいです。 ... depen OP N):
[MFLayer getSomethingsWithResultWithCompletion:^(id _Nullable response)Completion {
// it will be run on another thread!**
[MFRequestManager retrivesomeDataWithCompletion:^(id _Nullable response1) {
// it will be run on another thread!**
[MFRequestManager retriveAnothersomeDataWithInfo:response1 WithCompletion:^(id _Nullable response2) {
NSLog(@"Finished with Result : %@",response2);
}];
}];
}];
問題
場合は別のスレッドで実行します(AFNetworkingでリクエストを送信するなど)。私はserializeに問題があり、別のタスクが開始されます。私は、それはですので順次開始するタスクのすべてのように同じスレッドで実行しているNSOperationQueue
とNSOperation
が、それらの実装と、このような何かを実装している問題
を持って、まだNSOperationQueueとセマフォにしようとしたが持って
が正常に動作します。 operationQueueExample
「リトリーブ」メソッドを「取得」に変更することはできますか? – gnasher729