我不能讓我怎麼能執行一個回調後「ñ」異步功能被執行,例如:node.js的「N」異步回調執行後,執行功能
var after4AsyncOperation = function(){
//do something...
}
process.nextTick(function(){
//do stuff
})
process.nextTick(function(){
//do stuff
})
process.nextTick(function(){
//do stuff
})
process.nextTick(function(){
//do stuff
})
是否有方式4個異步功能後執行after4AsyncOperation
而不需要編寫一個函數,另外,前內:
var after4AsyncOperation = function(){
//do something...
}
process.nextTick(function(){
//do stuff
process.nextTick(function(){
//do stuff
process.nextTick(function(){
//do stuff
process.nextTick(function(){
//do stuff
after4Asyncoperation();
})
})
})
})