¿Es posible convertir el siguiente código a CoffeeScript?
async function print(readable) { readable.setEncoding('utf8'); let data = ''; for await (const chunk of readable) { data += chunk; } console.log(data); }Logré que algo funcionara, pero necesitaba escapar a JavaScript:
print = (readable) -> await readable # Force this function to be async with `await`. readable.setEncoding 'utf8' data = '' ``` // Is it possible to convert this part to CoffeeScript, too? for await (const chunk of readable) { data += chunk; } ``` console.log dataEntonces, ¿existe una solución CoffeeScript pura?