short-async
v1.0.1
Published
Simple and minimalistic co wrapper
Downloads
3
Maintainers
Readme
short-async
Simple and minimalistic co wrapper.
Requirements
- Node.js >= 4
Usage Examples
It's good to use as a simple wrapper for async functions.
Take a look on this example with mocha.js
:
"use strict";
const async = require("short-async");
describe("My test", () => {
it("Should pass", async(function* () {
yield something();
assert.isTrue(true);
}));
});