Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support automatic size detection of array passed to Task (HAST-322) #112

Open
Piedone opened this issue Sep 21, 2023 · 0 comments
Open

Support automatic size detection of array passed to Task (HAST-322) #112

Piedone opened this issue Sep 21, 2023 · 0 comments

Comments

@Piedone
Copy link
Member

Piedone commented Sep 21, 2023

Passing arrays to Tasks like below currently requires one manually specify the array size (see here):

public void PassArrayToTask()
{
var array = new int[TaskArrayLength];
var tasks = new Task<int>[15];
tasks[0] = Task.Factory.StartNew(
arrayObject =>
{
var localArray = (int[])arrayObject;
localArray[0] = 123;
return localArray[0];
},
array);
}

This should rather be handled automatically.

Then remove the manual array size config in StaticTestInputAssembliesVerificationTests.

Jira issue

@github-actions github-actions bot changed the title Support automatic size detection of array passed to Task Support automatic size detection of array passed to Task (HAST-322) Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant