functai for TypeScript - v0.1.0
    Preparing search index...

    Class DiskReplies

    Replies kept in one SQLite file (replies.md, "The file"), shared by every process that opens it, whatever its language: writes are transactions, so nothing is half-written; a claim with a lease makes one flight per key across processes. Created readable by its owner only. Needs node:sqlite (Node 22.13 or later, Deno).

    Implements

    Index
    durable: true
    path: string
    • The reply to key when one is kept; else take the key (one flight): wait while another call of this process or another process holds it.

      Parameters

      • key: string
      • Optionalsignal: AbortSignal

      Returns Promise<Rec | undefined>