Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/mod.universal.ts>WriteAheadFlag

Exploring Willow in the most efficient and sound programming language
Go to Latest
interface WriteAheadFlag
import { type WriteAheadFlag } from "https://deno.land/x/willow@0.2.1/mod.universal.ts";

Writes and reads flags indicating write operations to the store, in order to recover from errors mid-write.

Type Parameters

NamespaceId
SubspaceId
PayloadDigest

Properties

unflagInsertion: () => Promise<void>

Methods

wasInserting(): Promise<{ entry: Entry<NamespaceId, SubspaceId, PayloadDigest>; authTokenHash: PayloadDigest; } | undefined>
wasRemoving(): Promise<Entry<NamespaceId, SubspaceId, PayloadDigest> | undefined>
flagInsertion(entry: Entry<NamespaceId, SubspaceId, PayloadDigest>, authTokenHash: PayloadDigest): Promise<void>
flagRemoval(entry: Entry<NamespaceId, SubspaceId, PayloadDigest>): Promise<void>
unflagRemoval(): Promise<void>