While looking at the Q library, I came across the following code:
var FS = require("q-io/fs");
var readJsonPromise = Q.async(function *(path) {
return JSON.parse(yield FS.read(path));
});
What is the significance of *
after the function
keyword?