Skip to main content
Module

x/ddu_vim/deps.ts>Lock#with

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
method Lock.prototype.with
Re-export
import { Lock } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";

Acuire the lock and execute callback to access shared state.

This is preferred way to use a Lock.

Parameters

callback: () => void | Promise<void>

Returns

Promise<void>