Skip to content
joelmartinez edited this page Jan 29, 2013 · 1 revision

If you have a need to generate and reuse many entities, you can use this class

  • add(factoryCallback) - Adds a new item to the pool, taking it from the available pool. the factory call back is used to initialize the object is used to actually create the entry.
  • return(item) - Lets you return an item from the active list to the available list.
Clone this wiki locally