メインスレッドから作業スレッドにいくつかのパラメータを渡すにはどうすればよいですか (つまり、次のようにprocedure
)?
Parallel.Async(
procedure (const task: IOmniTask)
begin
//How does one pass in 'myParam' from the main thread, so that the statement bellow will work?
s := task.Param['myParam'].AsString;
end
);
IOmniTaskConfig
(OtlParallel.pas 内の)の定義を確認すると、次のようなというcommented out
プロパティがあります。Param
// property Param: TOmniValueContainer read GetParam;
したがって、私の質問に対する答えはノーだと思いますが、そうでないことを願っています!