DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
  • Infrastructure
    • can-construct
    • can-control
    • can-event
    • can-event/async/async
    • can-event/batch/batch
      • afterPreviousEvents
      • collecting
      • dispatch
      • dispatching
      • queue
      • start
      • stop
    • can-observation
    • can-simple-map
    • can-util
    • can-view-callbacks
    • can-view-live
    • can-view-model
    • can-view-nodelist
    • can-view-parser
    • can-view-scope
    • can-view-target
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Infrastructure
  • /
  • can-event/batch/batch
  • /
  • dispatching
  • / On this page
    • dispatching

      function
      • source

      batch.dispatching()

      Returns the Queue that is executing tasks.

      var canEvent = require("can-event");
      var batch = require("can-event/batch/batch");
      
      
      var obj = Object.assign({}, canEvent);
      
      
      
      batch.start();
      obj.dispatch("first");
      batch.stop();
      

      Returns

      {can-event/batch/Queue}:

      The queue currently executing tasks.

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.