resonant-amethystR

Using return and Actor.exit()

I wrote a function that needs to return it's result and will like to find out how to do that since I also have to call exit which terminates the function.
await Actor.init();
function funWithReturnStatement() {
// do some stuff
return data;
await Actor.exit()
}
Was this page helpful?