Create an event to release all resources acquired by an entity
event = eventReleaseAllResources(tag)
creates an event to release all the resources acquired by an entity.
event = eventReleaseAllResources(
tag — Identifier tag for the resource release event
Custom tag of this entity resource release event. You can use the tag to identify an event when multiple events act on the same entity. For more information about managing multiple events, see Custom Entity Storage Block with Multiple Timer Events.
event — Resource release event
Event that releases all resources from the entity.
On entity entry to a storage element, an entity releases all of the
previously acquired resources. The tag of this resource acquisition event is
function [entity, event] = entry(obj, storage, entity, source) event = obj.eventReleaseAllResources('releaseAll'); end
Introduced in R2019a