gabr42 / gabr42/OmniThreadLibrary

Abstract Error

Open
#49 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Pascal
Stars
513
Forks
147
PR merge metrics
No merged PRs in 30d

Description

procedure TForm1.FormCreate(Sender: TObject);
var
LLoop: IOmniParallelLoop;
LInput: IOmniBlockingCollection;
LOutput: IOmniBlockingCollection;
begin
LInput := TOmniBlockingCollection.Create;
LOutput := TOmniBlockingCollection.Create;

LLoop := Parallel.ForEach(LInput);
LLoop.PreserveOrder
.NoWait
.Into(LOutput)
.Execute(procedure (const value: TOmniValue; var res: TOmniValue) begin res := value end);
end;

It is not possible to perserve the order (.Into), when the input is TOmniBlockingCollection.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.