¿Cómo escribimos fuertemente cada una de las tareas automáticas asíncronas? digamos que get_data devuelve un número y email_link devuelve una cadena y finalmente quiero devolver la tarea email_link. No puedo averiguar cómo escribir fuertemente cada una de esas tareas y el valor del resultado.
async () => { try { let results = await async.auto({ get_data: async function() { // async code to get some data return someNumber; }, make_folder: async function () { // async code to create a directory to store a file in // this is run at the same time as getting the data return something; }, email_link: ['write_file', async function() { // once the file is written let's email a link to it... return someString; }] }); console.log('results = ', results); return results.email_link; } catch (err) { console.log(err); }}