Skip to content
Commits on Nov 16, 2015
  1. Merge pull request #37 from mixmaxhq/andrewtamura-fix-code-comment-in…

    committed
    …-examples
    
    Fixed code comment
Commits on Nov 5, 2015
  1. @andrewtamura

    Fixed code comment

    andrewtamura committed
Commits on Aug 1, 2015
  1. New version.

    committed
  2. Merge pull request #34 from d3m3vilurr/travis

    committed
    Support travis-ci
  3. Merge pull request #33 from d3m3vilurr/change-nexttick-to-set-immediate

    committed
    Change process.nextTick to setImmediate
  4. Merge pull request #32 from d3m3vilurr/master

    committed
    Fixes #31 Memory leak in 0.9.12
Commits on Jul 28, 2015
  1. @d3m3vilurr
  2. @d3m3vilurr

    Support travis-ci

    d3m3vilurr committed
  3. @d3m3vilurr

    Change process.nextTick to setImmediate

    d3m3vilurr committed
    process.nextTick is no more async action.
    If we use loop async action, node will print error message;
    
        (node) warning: Recursive process.nextTick detected. This will break in
        the next version of node. Please use setImmediate for recursive deferral.
  4. @d3m3vilurr

    Fixes #31 Memory leak in 0.9.12

    d3m3vilurr committed
    Simple test case:
    
        var immediately = function(cb) {
            sync.fiber(function() {
                setImmediate(sync.defer());
                sync.await();
            }, cb);
        };
    
        function test(m, cb) {
            if (m-- === 0) return cb();
            immediately(function(err) {
                if (err) return cb(err);
                if (m % 1000 === 0) {
                    console.log(m + ": " + JSON.stringify(process.memoryUsage()));
                }
                test(m, cb);
            });
        }
    
        test(100000000, function(err) {
                if (err) throw err;
                console.log("done");
        });
    
    Before:
        99888000: {"rss":114892800,"heapTotal":81994496,"heapUsed":58052656}
        99887000: {"rss":115163136,"heapTotal":81994496,"heapUsed":59327264}
        99886000: {"rss":115433472,"heapTotal":83026432,"heapUsed":60601944}
        99885000: {"rss":115703808,"heapTotal":83026432,"heapUsed":61877016}
        99884000: {"rss":115974144,"heapTotal":83026432,"heapUsed":63152072}
        99883000: {"rss":120840192,"heapTotal":87154176,"heapUsed":56497944}
        99882000: {"rss":121110528,"heapTotal":87154176,"heapUsed":57772688}
    
    After:
        99687000: {"rss":74567680,"heapTotal":60323840,"heapUsed":36945504}
        99686000: {"rss":74567680,"heapTotal":60323840,"heapUsed":38211632}
        99685000: {"rss":74510336,"heapTotal":59291904,"heapUsed":16835640}
        99684000: {"rss":74510336,"heapTotal":59291904,"heapUsed":18102288}
        99683000: {"rss":74510336,"heapTotal":59291904,"heapUsed":19368336}
        99682000: {"rss":74510336,"heapTotal":59291904,"heapUsed":20634792}
        99681000: {"rss":74510336,"heapTotal":59291904,"heapUsed":21900840}
        99680000: {"rss":74510336,"heapTotal":59291904,"heapUsed":23166888}
        99679000: {"rss":74510336,"heapTotal":59291904,"heapUsed":24432936}
Commits on Jul 25, 2015
  1. Updating readme.

    committed
  2. Merge pull request #30 from bradvogel/patch-2

    committed
    Update readme.md
Commits on Jul 24, 2015
  1. @bradvogel

    Update readme.md

    bradvogel committed
  2. Merge pull request #29 from bradvogel/patch-1

    committed
    Add informative blog post
  3. Merge pull request #28 from mixmaxhq/jeff/fix_parallel

    committed
    Prevent the fiber from unwinding if `await` is called after an empty `parallel` block.
Commits on Jul 22, 2015
  1. @bradvogel

    Add informative blog post

    bradvogel committed
    I think this would be really helpful to have in the readme.
Commits on Jul 21, 2015
  1. @wearhere

    Prevent the fiber from unwinding if `await` is called after an empty …

    wearhere committed
    …`parallel` block.
    
    This might happen if the user intended to enumerate an array within the `parallel`
    callback, calling `defer` once per array item, but the array was empty.
    
    Fixes #25.
  2. @wearhere

    Fix JSHint errors in tests.

    wearhere committed
Commits on Jul 17, 2015
  1. Minor refactoring.

    committed
  2. Merge pull request #27 from d3m3vilurr/master

    committed
    Prevent multiple restart fiber action
Commits on Jul 13, 2015
  1. @d3m3vilurr

    Prevent restart fiber code

    d3m3vilurr committed
    If we write wrong fiber action, sometimes fiber recall `run`
    
    POC
        sync.fiber(function() {
          process.nextTick(sync.defer());
          process.nextTick(sync.defer());
          throw new Error();
        });
    
    This commit fix two problems
    1. prevent restart fiber step
    2. prevent next defer call before await call
Commits on Jul 10, 2015
  1. @d3m3vilurr

    Prevent calling defer twice

    d3m3vilurr committed
    If we make wrong async process, it cause insane result.
    
    This patch set prevent these case:
    
    1. defer function call twice in synchronous process
    2. defer function call twice in asynchronous process
Commits on May 18, 2015
  1. Merge pull request #26 from mixmaxhq/sync-defer-should-check-for-fiber

    committed
    sync.deferWithTimeout should check if there is a fiber first.
Commits on May 15, 2015
  1. @andrewtamura

    Fixed typo in error message

    andrewtamura committed
  2. @andrewtamura
Commits on Feb 19, 2015
  1. Merge pull request #24 from grassick/patch-1

    committed
    Fix No Repository warning
Commits on Feb 18, 2015
  1. @grassick

    Fix No Repository warning

    grassick committed
Commits on Dec 13, 2014
  1. Merge pull request #22 from bradvogel/master

    committed
    Fix typos.
Commits on Oct 11, 2014
  1. Fix typos.

    Brad Vogel committed
Something went wrong with that request. Please try again.