# Category For Async Task in loop

**URL:** <https://forums.kodeco.com/t/category-for-async-task-in-loop/13888>\
**Category:** iOS\
**Created:** [April 25, 2016, 5:06am UTC](https://forums.kodeco.com/t/category-for-async-task-in-loop/13888 "2016-04-25T05:06:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunilspaceo](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sunilspaceo/32/31229_2.png) [@sunilspaceo](https://forums.kodeco.com/u/sunilspaceo)\
**Post date:** [April 25, 2016, 5:06am UTC](https://forums.kodeco.com/t/category-for-async-task-in-loop/13888/1 "2016-04-25T05:06:07Z")

</div>

I have create this simple drag and drop category of array that will handle asynchronous task in loop.

> **[GitHub - suniliosdev/TaskLoop: DemoTaskLoop](https://github.com/suniliosdev/TaskLoop)**
>
> DemoTaskLoop. Contribute to suniliosdev/TaskLoop development by creating an account on GitHub.

[array enumerateTaskSequentially:^(id URL, NSUInteger idx, BlockTaskCompletion completion) {  
// you can call your async task from here and at the end of the cast call ‘completion’ block  
//once you call completion block then after next iteration get executed  
} blockCompleteAllTask:^{  
NSLog(@“all task completed”);  
}];

if you have any doubt contact me on [sunil@spaceotechnologies.com](mailto:sunil@spaceotechnologies.com)
