Tabnine Logo For Javascript
d3-queue
Code IndexAdd Tabnine to your IDE (free)

How to use d3-queue

Best JavaScript code snippets using d3-queue(Showing top 5 results out of 315)

origin: bloomberg/wsk

pathsToTest.forEach(pathToTest => {
  var messageValue = {
   message: 'Warning: the file you asked to watch does not exist...',
   value: pathToTest + hintStr
  };

  q.defer(validatePath(messageValue), pathToTest);
 });
origin: vis4/page2rss

q.awaitAll(function(err, results) {
  console.log('all done', err, results);
});
origin: bloomberg/wsk

/* --------------------------------------------
  * Check that our taskFiles exist
  */
 watchGroup.events.forEach(evt => {
  if (evt.taskFiles) {
   let taskFiles = _.isArray(evt.taskFiles) ? evt.taskFiles : [evt.taskFiles];
   taskFiles.forEach(pathToTest => {
    var messageValue = {
     message: `Error: Task file for \`${watchGroup.serviceName}\` service's \`${evt.type}\` event does not exist.`,
     value: pathToTest
    };
    q.defer(validatePath(messageValue), pathToTest);
   });
  }
 });
origin: bloomberg/wsk

function add (watchGroups, onDone, testsCb) {
 if (!_.isArray(watchGroups)) {
  watchGroups = [watchGroups];
 }
 onDone = onDone || identity;
 // Add this hook for testing
 testsCb = _.defaults({}, testsCb || {}, {
  onInit: identity,
  onEvent: identity,
  onCommandEvent: identity,
  onTaskFileEvent: identity
 });

 var q = queue();

 // Loop through each file directive
 watchGroups.forEach(function (watchGroup) {
  q.defer(processWatchGroup(testsCb), watchGroup);
 });
 q.awaitAll(function (err, onDones) {
  onDone(err, onDones);
 });
}
origin: bloomberg/wsk

/* --------------------------------------------
  * General purpose error reporter
  * The first argument are failing errors
  * Second argument are warnings
  */
 q.awaitAll(function (nS, warnings) {
  /* istanbul ignore if */
  if (nS) {
   cb.fail(nS);
   return false;
  }
  // Send any warnings back out to report
  warnings.filter(nS => nS).forEach(nS => cb.warn(nS));
  // And then proceed
  cb.proceed();
 });
d3-queue(npm)

Most used d3-queue functions

  • Queue.awaitAll
  • Queue.defer
  • queue

Popular in JavaScript

  • fs
  • semver
    The semantic version parser used by npm.
  • async
    Higher-order functions and common patterns for asynchronous code
  • superagent
    elegant & feature rich browser / node HTTP with a fluent API
  • express
    Fast, unopinionated, minimalist web framework
  • http
  • winston
    A logger for just about everything.
  • handlebars
    Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
  • mime-types
    The ultimate javascript content-type utility.
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now