Bugfix in TEvent, DataServer Push-Mode
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user