A delayed queue factory for AngularJS