Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.IValueReleaser< in TValue > Interface Template Reference

Description

Represents a value provider (IValueProvider<TValue> or IValueProviderAsync<TValue>) to which clients should return the value that was provided to them, when they no longer need it (for example, when the client is destroyed).

Can be used, for example, to release unmanaged memory, or to return reusable objects into an object pool.

Template Parameters
TValueType of the returned value.

Public Member Functions

void Release ([AllowNull] Component client, TValue value)
 Returns the value of type TValue that was being used by the client .