Takes an array of disposable objects and ensures they are disposed.
WARNING: Use this unsafe method when guaranteed not to cause events that will make modifications to the disposables array.
Parameters
disposables: DisposableItemArray
The objects to dispose of. Can accept and will ignore objects that don't have a dispose() method.
Optional trapExceptions: boolean
If true, prevents exceptions from being thrown when disposing.
Takes an array of disposable objects and ensures they are disposed. WARNING: Use this unsafe method when guaranteed not to cause events that will make modifications to the disposables array.