Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple example for async #574

Open
daniilrozanov opened this issue Apr 21, 2024 · 0 comments
Open

Simple example for async #574

daniilrozanov opened this issue Apr 21, 2024 · 0 comments

Comments

@daniilrozanov
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant