Class IJobExtensions
- Namespace
- Misaki.HighPerformance.Jobs
- Assembly
- Misaki.HighPerformance.Jobs.dll
public static class IJobExtensions
- Inheritance
-
IJobExtensions
- Inherited Members
Methods
RunRef<T>(ref T, ref readonly JobExecutionContext)
Runs the job by reference in the calling thread, blocking until the job is complete.
public static void RunRef<T>(this ref T job, ref readonly JobExecutionContext ctx) where T : struct, IJob
Parameters
jobTThe job to run.
ctxJobExecutionContextThe job execution context.
Type Parameters
TThe type of the job.
Run<T>(T, ref readonly JobExecutionContext)
Runs the job in the calling thread, blocking until the job is complete.
public static void Run<T>(this T job, ref readonly JobExecutionContext ctx) where T : IJob
Parameters
jobTThe job to run.
ctxJobExecutionContextThe job execution context.
Type Parameters
TThe type of the job.