plenary.nvim icon indicating copy to clipboard operation
plenary.nvim copied to clipboard

Simple example for async

Open daniilrozanov opened this issue 10 months ago • 0 comments

I am writing a plugin, which needs to do some i/o jobs on setup and later. So i want to to all of this async and without callbacks. Is there some simple example from scratch, which explains how to organise all this calls, starting from setup function?

In readme you give example of async reading like

local a = require "plenary.async"
local read_file = function(path)
-- ...

But it is not obvious, from which context i should invoke it. All i doing now is reading telescope and neotree sources to figure out how to use it, but it's hard way, i would prefer some more simple project to research.

daniilrozanov avatar Apr 21 '24 13:04 daniilrozanov