asyncFun()
.then(function(done){
// done
})
.catch(function(error){
// error
})
var f = async(function(){
var a = await(asyncFun());
});
async getAllMembers(id) {
try {
return await model.query('select * from `group_members` where `group_id` = ?', [id]);
} catch(e) {
return e;
}
}