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

Remove ArrayPool in ClientGrain.OnActivateAsync and replace with new allocated array #134

Merged
merged 2 commits into from
Aug 8, 2022
Merged

Remove ArrayPool in ClientGrain.OnActivateAsync and replace with new allocated array #134

merged 2 commits into from
Aug 8, 2022

Conversation

michaelmcneilnet
Copy link
Contributor

@michaelmcneilnet michaelmcneilnet commented Jul 1, 2022

ArrayPool returns an array which is at least the requested length, and so can have null elements at the end. Task.WhenAll throws an exception when provided an array with nulls.

Replaces #133 which is fixing the same issue but by keeping the arraypool and filtering out the nulls.

This solves #128

ArrayPool returns an array which is at least the requested length, and so can have null elements at the end. Task.WhenAll throws an exception when provided an array with nulls.
@galvesribeiro galvesribeiro merged commit 2460d5d into OrleansContrib:master Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants