Stops execution at await

suggest change

If the promise doesn’t return anything, the async task can be completed using await.

try{
    await User.findByIdAndUpdate(user._id, {
        $push: {
            tokens: token
        }
    }).exec()
}catch(e){
    handleError(e)
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Async / Await:
* Stops execution at await

Table Of Contents
1 npm
41 cli
43 grunt
59 Hack
61 Async / Await
64 ES6
67 Redis
69 MongoDB
86 MongoDB
87 Lodash
91 CORS
105 N-API
108 Require