has three execution functions. How to execute functions through an asynchronous queue so that they can be output in the order of parameters?
function f1() {
setTimeout(function() {
console.log("f1")
}, 300)
}
function f2() {
setTimeout(function() {
console.log("f2")
}, 100)
}
function f3() {
setTimeout(function() {
console.log("f3")
}, 200)
}
function doWork(list) {
// TODO
}
doWork([f1, f2, f3])
// : f1 f2 f3