basalt / queue/src / readJobEnvelope
Function: readJobEnvelope()
> readJobEnvelope(data): object
Defined in: queue/src/driver.ts:128
Opens a dispatch envelope for JobSummary. Defensive on purpose: a queue can also hold data written by an older version or by a non-Basalt producer, and an inspection command must never throw on it — anything that is not an envelope is reported as the payload itself.
Parameters
data
unknown
Returns
object
context?
> optional context?: RequestContext
payload
> payload: unknown