Execute A

Signatures

void executea(u64 address)
void executea(string symbol)
object executea(u64 address, s32 retType, table argTypes, table argValues)
object executea(u64 address, s32 retType, s32 argType, object argValue, ...)

Description

Asynchronously executes a function with zero or more arguments and returns the result.

It doesnโ€™t block the flow of execution and lets other tasks proceed without waiting for the function to complete.

Operation fails if the given address is 0, the maximum number of arguments is exceeded, or the argument type and value count does not match. In such cases, nil will be returned.

Arguments

Address

The memory address of the function.

Symbol

The symbol with the memory address of the function.

Return Type

The type of the return value.

Argument Type(s)

The type of the argument, or a table containing multiple types of arguments.

Argument Value(s)

The value of the argument, or a table containing multiple values of arguments.

Notes

For a list of all argument types, you can view the Arg page.

Unlike asynchronous events, this function creates a new thread for execution, which adds minimal overhead.

Last updated