Skip to content

v1.0.2 Release

Compare
Choose a tag to compare
@benlau benlau released this 17 Jul 03:19
· 94 commits to master since this release

Changes

  1. Q.all()/Q.allSettled() - Supported to take an array of signal and Promise item (Previous version only support Promise object)

Bug Fix

  1. Promise.resolveWhen() - If the input argument is a Promise item, it will be resolved immediately.

Advanced Usage

  1. Resolve by multiple signals.

Promise {
    resolveWhen: Q.all([timer.triggered, loader.loaded]);
}

  1. Resolve by signal and binary expression
Promise {
    resolveWhen: Q.all([timer.triggered, promise2]);

    Promise {
        id : promise2
        resolveWhen: image.status === Image.Ready
    }
}