Initializes a function call and calls it with context but shows as the function type (async)
the context to call the function with
the function to call
the parameters to pass to the function
Async called function return type or immediately if the input is not a function
BSBError context is not an object
const myFunc = async (a: string, b: number) => { console.log("called with " + a + " and " + b);};console.log("done with " + await SmartFunctionCallAsync(this, myFunc, "a", 5)); Copy
const myFunc = async (a: string, b: number) => { console.log("called with " + a + " and " + b);};console.log("done with " + await SmartFunctionCallAsync(this, myFunc, "a", 5));
API: SmartFunctionCallAsync
Initializes a function call and calls it with context but shows as the function type (async)