super useful way to thunkify generator functions to tidy up your mocha tests.