Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
variable gamla.withLock
import { gamla } from "https://deno.land/x/abstract_bot_api@44.0.0/deps.ts";
const { withLock } = gamla;

type

<F extends AsyncFunction>(
lock: (...task: Parameters<F>) => void | Promise<void>,
unlock: (...task: Parameters<F>) => void | Promise<void>,
f: F,
) => F