Friday, 12 June 2009 22:41

During a recent project, I had an issue with BulkLoader. I wanted to pause all of the loaders running, then resume them later. Pausing them was easy, as BulkLoader has a static method 'pauseAllLoaders'. But resuming them was another issue. I could resume individual items with resume(), or a whole instance with resumeAll(), but there was no method for resuming all instances.

I took a peek under the hood and found exactly what I was hoping to find: a static Object housing all the named BulkLoader instances! So here's a short snippet I wrote to resume all BulkLoader LoaderItems:

for( var ldr:String in BulkLoader._allLoaders )
  BulkLoader.getLoader( ldr ).resumeAll();
Comments (1)
1 Wednesday, 01 January 2014 05:49
The post of content is very interesting and exciting. I learned a lot from here.The content from simple to complex, so all of you can come in.

Add your comment

Your name:
  The word for verification. Lowercase letters only with no spaces.
Word verification:

The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. Jeff Channell is not affiliated with or endorsed by Open Source Matters or the Joomla!® Project.

Joomla Extensions