Table of Contents

THostedWorker.BeforeDestruction Method

Stops a worker that is still running, before any destructor runs.

Remarks

Here rather than in Destroy: a descendant's destructor frees its own fields before calling the inherited one, and the thread may still be using them.

Syntax

Unit: Sparkle.Host.Contracts

procedure THostedWorker.BeforeDestruction; override;

See also