Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

dweinstein/pull-async-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A through stream that filters items out with an async filter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published