Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/nvim/mod.ts>wait

๐Ÿ“š Standard module for denops.vim
Go to Latest
function wait
import { wait } from "https://deno.land/x/denops_std@v6.4.0/function/nvim/mod.ts";

Waits until {condition} evaluates to TRUE, where {condition} is a Funcref or string containing an expression.

{timeout} is the maximum waiting time in milliseconds, -1 means forever.

Condition is evaluated on user events, internal events, and every {interval} milliseconds (default: 200).

Returns a status integer: 0 if the condition was satisfied before timeout -1 if the timeout was exceeded -2 if the function was interrupted (by CTRL-C) -3 if an error occurred

Parameters

denops: Denops
timeout: unknown
condition: unknown
optional
interval: unknown

Returns

Promise<number>