Skip to content

Std resource resource ondiscard

std:std.resource.Resource.OnDiscard

Method OnDiscard:Void( )#

The OnDiscard method.

This is where subclasses should place their actual discard code.

This method will be invoked the first time Resource.Discard() is invoked.

This method will only ever be invoked at most once during the lifetime of a resource.