Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
variable withLockByInput
import { withLockByInput } from "https://deno.land/x/gamla@65.0.0/src/index.ts";

type

<Function extends AsyncFunction>(
argsToLockId: (..._: Parameters<Function>) => string,
lock: (_: string) => Promise<void>,
unlock: (_: string) => Promise<void>,
f: Function,
) => unknown