Class WorkHandle
Handle a work unit.
Implements
Inherited Members
Namespace: Evergine.Framework.Threading
Assembly: Evergine.Framework.dll
Syntax
public class WorkHandle : IDisposable
Properties
Priority
Gets the work priority.
Declaration
public WorkPriority Priority { get; }
Property Value
Type | Description |
---|---|
WorkPriority |
State
Gets the work state.
Declaration
public WorkState State { get; }
Property Value
Type | Description |
---|---|
WorkState |
Methods
Dispose()
Declaration
public void Dispose()
Execute()
Executes the work.
Declaration
public void Execute()
Wait()
Waits until work completed or canceled.
Declaration
public void Wait()
Remarks
The handle state can be Completed and this methods does not returns immediately because dependant children does not have ended.