An object to execute the asynchronous task. You can
also re-execute the future by calling the CFuture.execute method.
Example
// Schedule a task for getting a future result and write it to the // console. letfuture = async_task({ task: (data) => { returndata + 20; }, data:22, delay:1000, execute:true, }); letresult = awaitfuture.result(); console.log("result = ", result.value());
Will execute an asynchronous task and get its result in the future.