1.0.0 • Published 9 years ago

pull-async-filter v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

SYNOPSIS

A through stream that removes items with an async filter.

USAGE

var remove = require('pull-async-filter');
var pull = require('pull-stream');

function should(v, cb) {
  setTimeout(function () {
      cb(null, v === 10);
  });
}

pull(
  pull.values([10, 10, 30, 10]),
  remove(should),
  sum(function (err, value) {
    console.log(value); // 30
  })
);