Skip to main content
@async marks a function that must be called from another async function. It is metadata for GLuaLS; it does not change runtime behavior.

Use it on an async function

What it does

  • Marks the function as async in hover documentation.
  • Reports an await-in-sync diagnostic when an async function is called from a non-async function.
  • Has no runtime effect.
Mark your coroutine or callback wrapper as @async; GLuaLS cannot make an ordinary callback API asynchronous.