Bugfix in TEvent, DataServer Push-Mode

This commit is contained in:
Michael Schimmel
2025-06-24 18:32:32 +02:00
parent 35413f5966
commit 3797507d95
13 changed files with 251 additions and 69 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ type
// After waiting, or if the state is already set, any first stored exception
// from any worker thread of this factory will be re-raised in the calling (main) thread.
// Raises ETaskException if called from within a worker thread.
procedure WaitFor(State: TState.IState);
procedure WaitFor(const State: TState.IState);
end;
var
@@ -42,7 +42,7 @@ type
public
// IMycTaskManager
function CreateTask(const Gate: TState; const Proc: TProc): TSignal.TSubscription;
procedure WaitFor(State: TState.IState);
procedure WaitFor(const State: TState.IState);
constructor Create;
end;
@@ -77,7 +77,7 @@ begin
Result := Gate.Signal.Subscribe(TMycExecMock.Create(Proc));
end;
procedure TMycTaskManagerMock.WaitFor(State: TState.IState);
procedure TMycTaskManagerMock.WaitFor(const State: TState.IState);
begin
Assert(State.IsSet);
end;