Libraries v5.2.0
    Preparing search index...

    Class InMemoryJobStorage

    Shared process-local state; reuse one instance to model multiple workers.

    Implements

    Index
    • Inject a deterministic clock for conformance/recovery tests.

      Parameters

      • clock: () => number = Date.now

      Returns InMemoryJobStorage

    • Serialize transactions and restore snapshots on failure. Returned data is detached.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>