Options
All
  • Public
  • Public/Protected
  • All
Menu

Module pools/array-object-pool

Type aliases

ObjectDeInitializer

ObjectDeInitializer<Value>: function

Function called in order to de-initialize resource when it is released.

Type parameters

  • Value

Type declaration

    • (resource: Value): void
    • Parameters

      • resource: Value

      Returns void

ObjectInitializer

ObjectInitializer<Value>: function

Function called in order to initialize resource with values provided on it's acquisition.

Notice that when resource is firstly created, you will receive an empty object which needs to be initialized.

Type parameters

  • Value

Type declaration

    • (resource: Value, values: any[]): void
    • Parameters

      • resource: Value
      • values: any[]

      Returns void