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
-
IAnalysisJob<T>
- Inherited Members
Constructors
AnalysisTaskJob(Func<T>, Task)
public AnalysisTaskJob(Func<T> operation, Task after = null)
Parameters
Properties
Cancelled
public bool Cancelled { get; }
Property Value
Completion
public Task Completion { get; }
Property Value
Progress
0–1.
public float Progress { get; }
Property Value
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
budgetMillisecondsdouble