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

x/denops_std/function/vim/mod.ts>remote_read

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

Return the oldest available reply from {serverid} and consume it. Unless a {timeout} in seconds is given, it blocks until a reply is available. Returns an empty string, if a reply is not available or on error. See also clientserver. This function is not available in the sandbox. only available when compiled with the +clientserver feature Example:

:echo remote_read(id)

Can also be used as a method:

ServerId()->remote_read()

Parameters

denops: Denops
serverid: unknown
timeout: unknown

Returns

Promise<string>