Interface: Base2art.Threading.IEnsurer

An interface that represents a class that invokes a method one and only one time, in a thread-safe manner. Similar to the System.Lazy`1, but with an System.Action instead of System.Func`1.

Properties

Ensured

Gets a value indicating that the ensurer has been invoked.

Methods

Ensure

Ensures that the item is invoked.


Reset

Calling this method will allow you to invoke the item again.