Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API ObjectPoolMixin Acquire

Last wiki revision 2021-05-18

Furnishes a widget, or returns it to the. widget = pool:Acquire success = pool:Release(widget) pool:ReleaseAll

  • widget : - Furnished by Acquire or returned by Release.
  • success : - Returned by Release as true if returning the widget to the pool, or false otherwise (the widget is not even part of the pool, or was previously returned).
  • Acquire draws a widget from the pool, preferring to reuse a previously-released one but using the pool's creationFunc if necessary.
  • Widgets are reused in reverse order to how they were released (LIFO).
  • All three functions apply the pool's resetterFunc (unless it is nil) to affected widgets during each operation.
  • ReleaseAll returns all widgets to the pool.

Source

https://warcraft.wiki.gg/wiki/API_ObjectPoolMixin_Acquire · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.