Adds support for ES7 async functions to hapi route handlers
ES7 introduces async functions, which are functions that support the
await keyword and return promises. This hapi plugin adds a handler called
async that allows you to write your route handlers using async functions. You can also use hapi-async-handler with io.js, generator functions (and the
yield keyword), and co today. There are examples of both styles of use shown below.
var server = ;server;
Define an async function that receives
reply like a normal route handler and assign it the
async property of the route handler.
You can also use co and generator functions without any source-code transformations if you are using io.js.