Hi,
WorkerService.zip (636.4 KB)
In the attached there is a class called worker.pas
method ExecuteAsync(stoppingToken: System.Threading.CancellationToken): Task; override;
begin
/*
var startedTask := Task.Factory.StartNew(method begin
end, stoppingToken);
exit startedTask;
*/
//stoppingToken.IsCancellationRequested
end;
In the above I can use code completion to select stoppingToken and then the method IsCancellationRequest.
If I then uncomment the code surrounded by /* and */ and build. When I try and use code completion I get “nothing to complete”
If you then put back the /* and */ and build, code completion works again.
Cheers,
John