Class PacePlayee
Represents an entity that can be controlled by the pace player.
public class PacePlayee
- Inheritance
-
PacePlayee
- Inherited Members
- Extension Methods
Properties
Player
Gets the player that controls this playee.
public PacePlayer Player { get; }
Property Value
Methods
Pace()
A pausable mark for the playing process. The function enables Pause() to take effect.
public void Pace()
Remarks
Waits for the player to signal the next pace. On the player thread this is also where the jobs queued by TryRunAtPacePoint(IPacedJob, CancellationToken, out Task, bool) run; inside a chunk of such a job the call is a plain pace point — it parks while the player is paused and throws on cancellation — but never runs the queue (the job in flight comes first). While no run (or one-shot) is live the pass is open and the call returns at once, so a playee kept from a run that has ended paces through; while one is paused, a call off the player thread parks until Resume() or Terminate(). The run's token is read once, before the wait: a call a stop released throws, whether the run's end has cleared the player's token meanwhile or not, and a call the run's own end released returns.