Disposes an array of objects asynchronously after an optional delay.
This method creates a copy of the input array and schedules disposal
to occur after the specified delay. This is useful for cleanup operations
that should happen after the current execution context completes.
Parameters
disposables: DisposableItemArray
Array of objects to dispose asynchronously.
delay: number = 0
Milliseconds to wait before disposing. Default is 0.
Higher values may improve foreground performance but delay cleanup.
Returns void
Example
// Dispose immediately on next tick dispose.these.deferred(resourceArray);
// Dispose after 100ms delay dispose.these.deferred(resourceArray, 100);
Disposes an array of objects asynchronously after an optional delay.
This method creates a copy of the input array and schedules disposal to occur after the specified delay. This is useful for cleanup operations that should happen after the current execution context completes.