Table of Contents

THostedWorker.Stop Method

Signals the stop token and waits for Execute to return. Does nothing if the worker is not running.

Remarks

Called from the worker's own thread - by the work itself - it only signals the token and returns: waiting for its own thread would never end. The loop then winds down once the call returns to it.

Syntax

Unit: Sparkle.Host.Contracts

procedure THostedWorker.Stop;

See also