1.0.1 • Published 8 years ago

short-async v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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);
  }));
  
});