Class AnalysisTaskJob<T>

Namespace
SurvivorsMaker.Editor
Assembly
SurvivorsMaker.Editor.dll

Polls a synchronous headless API off the editor thread. Inputs must already be copied. Cancel discards its result; a synchronous call already in flight finishes in the background. A predecessor serializes rapid edits to keep obsolete requests out of the worker pool.

public sealed class AnalysisTaskJob<T> : IAnalysisJob<T>

Type Parameters

T
Inheritance
AnalysisTaskJob<T>
Implements
Inherited Members

Constructors

AnalysisTaskJob(Func<T>, Task)

public AnalysisTaskJob(Func<T> operation, Task after = null)

Parameters

operation Func<T>
after Task

Properties

Cancelled

public bool Cancelled { get; }

Property Value

bool

Completion

public Task Completion { get; }

Property Value

Task

Progress

0–1.

public float Progress { get; }

Property Value

float

Result

Valid once Step returned true (partial when cancelled).

public T Result { get; }

Property Value

T

Methods

Cancel()

public void Cancel()

Step(double)

Does up to budgetMilliseconds of work. Returns true when finished.

public bool Step(double budgetMilliseconds)

Parameters

budgetMilliseconds double

Returns

bool