public readonly record struct JobHandleA scheduled job, and an edge in the dependency graph.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Twelve bytes: an index into the scheduler's slot ring, the generation that slot was on when the job was scheduled, and which scheduler owns it. The generation is what makes a handle safe to keep — a slot that has been recycled reports a different generation, so a stale handle reads as "already finished" rather than as some unrelated job that happens to occupy the slot now.
The default value is the null handle. It is complete, completing it does nothing, and depending on it is free — so default is the right thing to pass for "no dependency" and the right thing to store in a field that has not been scheduled yet.
Fields and properties (2)
public bool IsNullWhether this is the null handle — no job, already complete.
public bool IsCompletedWhether the job has finished. Never blocks.
Methods (3)
public void Complete()Waits for the job to finish, executing other ready work in the meantime rather than idling.
public static JobHandle Combine(params ReadOnlySpan<JobHandle> handles)Produces one handle that is complete when all of are.
public override string ToString()Renders the handle as #index.version, or #null.
Used by (76, showing 40)
- MouseCaptureSystemThirdPersonShooter
- OrbitSystemEcsStressTest
- SchedulingOverheadBenchmarksVixen.Benchmarks.Jobs
- AlsoReadPositionSystemVixen.Ecs.Tests
- AnimationSystemVixen.Animation
- AudioSystemVixen.Audio
- BehaviorLateUpdateSystemVixen.Engine
- BehaviorLifecycleSystemVixen.Engine
- BehaviorUpdateSystemVixen.Engine
- CameraDirectorSystemVixen.Engine
- CameraExtractionSystemVixen.Rendering
- CharacterMovementSystemVixen.Physics
- ConstraintGizmoSystemVixen.Animation
- CoroutineEndOfFrameSystemVixen.Engine
- CoroutineFixedStepSystemVixen.Engine
- CoroutineLateUpdateSystemVixen.Engine
- CoroutineUpdateSystemVixen.Engine
- CycleAVixen.Ecs.Tests
- CycleBVixen.Ecs.Tests
- DebugDrawSystemVixen.Engine
- DiagnosticOverlaySystemVixen.Engine
- EarlySystemVixen.Ecs.Tests
- ForkJobVixen.Core.Threading.Tests
- HealSystemVixen.Ecs.Tests
- ISystemVixen.Ecs
- InputPhaseSystemVixen.Ecs.Tests
- InputUpdateSystemVixen.Engine
- IntegrateSystemVixen.Ecs.Tests
- JobSchedulerVixen.Core.Threading
- JobSchedulerTestsVixen.Core.Threading.Tests
- LateSystemVixen.Ecs.Tests
- LightExtractionSystemVixen.Rendering
- LocalPlayerSystemVixen.Net.Engine
- MeshExtractionSystemVixen.Rendering
- MoveSystemVixen.Ecs.Tests
- NavigationSystemVixen.Navigation
- NestedJobVixen.Core.Threading.Tests
- NetworkAnimatorApplySystemVixen.Net.Animation
- NetworkAnimatorCaptureSystemVixen.Net.Animation
- NetworkAudioApplySystemVixen.Net.Audio