AcediaDocumentation

trampoline_call

Calls a function on a new carrier thread with selected context options.

Identity defaults to 2. Environment replaces the carrier's globals when it is a table. Script binds a valid script container. Success returns true and only the last captured result, if any; failure returns false and an error string. Do not assume full multiple-return forwarding.

trampoline_call(callback: function, context: table, options: table, ...: any): (boolean, any?)

Parameters

ParameterTypeDescription
callbackfunctionFunction to invoke.
contexttableRequired table; the current implementation validates it but does not read its fields.
optionstableIdentity, Environment and Script options.
...anyArguments passed to the callback.

On this page