3 ms·
You can do that with current ES transpilers: async read(connect, readMessage, print) { const sock = await connect('localhost', 7942),
by jsprogrammer 12y ago
You can do that with current ES transpilers:
async read(connect, readMessage, print) {
const sock = await connect('localhost', 7942),
msg = await readMessage(sock);
print(msg);
}
- omphalos 12y agoYou can do it now without a transpiler if you set harmony flags in Chrome/Node and use yield+co. (And just use a transpiler for deployment.)