using System.Threading.Tasks; namespace SweetLib.Storage { /// /// Generates a new object id. /// /// Type of the used identifier. public interface IIdGenerator { /// /// Generates a new id of the specified type. /// /// T GenerateNewId(); /// /// Generates a new id of the specified type. Runs asynchronous. /// /// Task GenerateNewIdAsync(); } }