@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-syncdiagnostic when an async function is called from a non-async function. - Has no runtime effect.
@async; GLuaLS cannot make an ordinary callback API asynchronous.