Table of Contents

Method GetJobAsync

Namespace
Millrace.Storage
Assembly
Millrace.dll

GetJobAsync(JobId, CancellationToken)

Reads one job, or null if no such job exists.

ValueTask<JobRecord?> GetJobAsync(JobId id, CancellationToken ct)

Parameters

id JobId
ct CancellationToken

Returns

ValueTask<JobRecord>

Remarks

A plain read with no fencing and no lock: the record it returns is a snapshot that may be stale the moment it arrives. Anything acting on it must go through a fenced operation rather than trusting what it saw here.