Jump to content
Rustam Novikov

Storing iomnifuture in dynamic array

Recommended Posts

I have a for loop which executes parallel.future in its body and stores iomnifuture in a dynamic array. After the loop I iterate through the array and call .value for each element. Unfortunately this code fails occasionly with TList.IndexOutOfBounds exception.

When Inside for loop I wait for each omnifuture to complete everything works fine. What am I doing wrong?

Edited by Rustam Novikov

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now