Skip to content

Conversation

@AlexanderDeBattista
Copy link
Contributor

The System.Collections.ArrayList that are used in parallel contexts, are not thread safe. Using System.Collections.Concurrent.ConcurrentBag[PSObject] allows for all threads to asynchronously add items to the collection. I observed several "null"-edges in the output JSON, and I suspect that it was caused by some race condition when asynchronously adding edges to the non-thread safe arrayList.

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.

1 participant