Merge many lists concurrently — elements in arrival order.
A parallel OsidList merges N source lists into a single stream. Each source is buffered independently on its own virtual thread, and elements are handed to the consumer in arrival order — whichever source produces next. Where a composite list drains its sources one after another, a parallel list reads them all at once and interleaves the results.
Intended for single-consumer use, per the OsidList contract. By default a reader error aborts iteration; in soft mode the error is recorded without stopping the remaining readers.
Creates a parallel list with a default per-reader buffer size and hard-error handling.
| Parameter | Type | Description |
|---|---|---|
bufferSize |
int |
the capacity of each reader's bounded buffer |
soft |
boolean |
if true, a reader error is recorded without aborting iteration of the remaining readers |
| Parameter | Type | Description |
|---|---|---|
list |
OsidObjectList |
a source list to be merged concurrently with the others |