3 ms·
What is wrong with async in JS?
by sesm 1y ago
What is wrong with async in JS?
- forrestthewoods 1y agoYou have to write JS
- mollerhoj 1y agosingle threaded, memory requirements, function coloring
- sesm 1y ago> single threaded The entire language is single thread. But I/O uses a separate thread pool. > memory usage Are you talking about extra 120 bytes per Promise? > function coloring How does it manifest in JS? You can `await` non-async function without any issues, anything potentially async is awaited, if it doesn't end up doing async inside there is no problem.