What It Does
AsyncPromise is the main entry point for this object family. Use it to understand the responsibility of the namespace before diving into the methods below it. AsyncPromise is part of the Macro Handler API surface.
AsyncPromise is part of the Macro Handler API surface.
AsyncPromise is the main entry point for this object family. Use it to understand the responsibility of the namespace before diving into the methods below it. AsyncPromise is part of the Macro Handler API surface.
This API is safest when used inside small, readable, and tightly controlled macro steps. This API becomes most valuable in multi-step chained scenarios.
This entry does not require mandatory parameters. This entry is a namespace or helper object overview; the real flow is built with the methods listed below it.
Using this API with logging, error handling, and next-step control produces much more professional results than calling it in isolation.
The snippet below is a starter pattern that can be applied directly in runtime flow.
-- AsyncPromise:resolve
local result = AsyncPromise:resolve("value")
-- Use the result in your script flowFrom foundation to combined usage, each level is provided as a separate code block so you can copy the level you need and adapt it directly.
-- AsyncPromise:resolve
local result = AsyncPromise:resolve("value")
-- Use the result in your script flow-- AsyncPromise:resolve
local result = AsyncPromise:resolve("value")
-- Use the result in your script flow
-- Continue with one focused method on the object.-- AsyncPromise:resolve
local result = AsyncPromise:resolve("value")
-- Use the result in your script flow
local note = "AsyncPromise overview loaded"
print(note)-- This API is safest when used inside small, readable, and tightly controlled macro steps.
local function run_asyncpromise_step()
-- AsyncPromise:resolve
local result = AsyncPromise:resolve("value")
-- Use the result in your script flow
end
local ok, err = pcall(run_asyncpromise_step)
if not ok then
toast("Step failed")
print(err)
end-- AsyncPromise:resolve
local result = AsyncPromise:resolve("value")
-- Use the result in your script flow
wait(200)
print("Combined with logging and flow control")