ディスパッチ非同期でコードを実行しているとしましょう。.. 完了する前に作成したスレッドを終了する方法はありますか? ユーザーがキャンセルをクリックしたときのように
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
//start doing something here.. break bofore it finishes?
dispatch_async(dispatch_get_main_queue(), ^{
//main thread stuff..
});
});