packages/ddp-server/writefence.js
function () {
    var self = this;
    var future = new Future;
    self.onAllCommitted(function () {
      future['return']();
    });
    self.arm();
    future.wait();
  }
function () {
    var self = this;
    var future = new Future;
    self.onAllCommitted(function () {
      future['return']();
    });
    self.arm();
    future.wait();
  }
function ( ) { var self = this ; var future = new Future ; self . onAllCommitted ( function ( ) { future [ 'return' ] ( ) ; } ) ; self . arm ( ) ; future . wait ( ) ; }
Convenience function. Arms the fence, then blocks until it fires.
Convenience function . Arms the fence then blocks until it fires .