Refactoring
This commit is contained in:
@@ -9,7 +9,7 @@ uses
|
||||
type
|
||||
IMycTaskManager = interface
|
||||
// TOD Dokumentation
|
||||
function CreateTask(const Gate: TState; const Proc: TProc): TState.TSubscription;
|
||||
function CreateTask(const Gate: TState; const Proc: TProc): TSubscription;
|
||||
|
||||
// Waits for the operation associated with State to complete.
|
||||
// Must not be called from a worker thread of this factory.
|
||||
@@ -41,7 +41,7 @@ type
|
||||
TMycTaskManagerMock = class(TInterfacedObject, IMycTaskManager)
|
||||
public
|
||||
// IMycTaskManager
|
||||
function CreateTask(const Gate: TState; const Proc: TProc): TState.TSubscription;
|
||||
function CreateTask(const Gate: TState; const Proc: TProc): TSubscription;
|
||||
procedure WaitFor(State: IMycState);
|
||||
|
||||
constructor Create;
|
||||
@@ -72,7 +72,7 @@ begin
|
||||
inherited Create;
|
||||
end;
|
||||
|
||||
function TMycTaskManagerMock.CreateTask(const Gate: TState; const Proc: TProc): TState.TSubscription;
|
||||
function TMycTaskManagerMock.CreateTask(const Gate: TState; const Proc: TProc): TSubscription;
|
||||
begin
|
||||
Result := Gate.Subscribe(TMycExecMock.Create(Proc));
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user