Playing with libav.js [1] (#ffmpeg in #javascript through #emscripten)
TIL about "async functions" [2]. Seems like moving from "normal" to "async" is a one-way street - normal functions can be easily called in an async context, but it looks like there's no way to get the value of an async function in sync context.
Yes, I can ".then(...)" on the return value, but then I'm back in callback hell and no longer "sync", am I...
[1] https://github.com/Yahweasel/libav.js
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function