Replacement for async-lib.util.wait() #640
Unanswered
bitznbrewz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I'm looking at using plenary's async library for some lua functions that I'm writing for work. Previously, the async-lib seems to have provided a "wait" feature to wait until the promise was fulfilled before proceeding on with the rest of the code.
I am calling async.scheduler() within my async functions as part of the callback function. I was then planning on calling async.util.wait afterwards before trying to consume the values. Is there a replacement that I can use instead of async-lib's util.wait function?
I apologize for the noob question. I'm just getting started with asynchronous programming with Neovim and Lua.
Beta Was this translation helpful? Give feedback.
All reactions