|
-
July 30th, 2009, 12:21 AM
#1
Pause and continue a foreach loop.
I have a foreach loop running on a separate thread.
Code:
foreach ( string str in strg )
{
// my action
}
I was wondering if there was a way i could pause this foreach loop at some point and then resume it later.
I tried searching this, but all i come up with is beginner tutorials on how to use the foreach loop.
So can anyone show me a different way to do an action so i can pause and resume it at some point, or do i just have to save where it stopped and resume it from there or something.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|