You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Utilizes double-check async locking to guarantee there's only one instance of the object. It's lazy; it's initialized only when retrieving. <para/>
@@ -18,8 +17,7 @@ public interface IAsyncSingleton<T> : IDisposable, IAsyncDisposable
18
17
/// <remarks>The initialization func needs to be set before calling this, either in the ctor or via the other methods</remarks>
/// Utilizes double-check async locking to guarantee there's only one instance of the object. It's lazy; it's initialized only when retrieving. <para/>
@@ -28,50 +26,47 @@ public interface IAsyncSingleton<T> : IDisposable, IAsyncDisposable
28
26
/// <remarks>The initialization func needs to be set before calling this, either in the ctor or via the other methods</remarks>
/// <see cref="Get"/> should be used instead of this if possible. This method can block the calling thread! It's lazy; it's initialized only when retrieving. <para/>
32
+
/// <see cref="Init(System.Threading.CancellationToken,object[])"/> should be used instead of this if possible. This method can block the calling thread! It's lazy; it's initialized only when retrieving. <para/>
36
33
/// This can still be used with an async initialization func, but it will block on the func.
37
34
/// </summary>
38
35
/// <remarks>The initialization func needs to be set before calling this, either in the ctor or via the other methods</remarks>
/// <see cref="Get(object[])"/> should be used instead of this if possible. This method can block the calling thread! It's lazy; it's initialized only when retrieving. <para/>
41
+
/// <see cref="Init(object[])"/> should be used instead of this if possible. This method can block the calling thread! It's lazy; it's initialized only when retrieving. <para/>
46
42
/// This can still be used with an async initialization func, but it will block on the func.
47
43
/// </summary>
48
44
/// <remarks>The initialization func needs to be set before calling this, either in the ctor or via the other methods</remarks>
/// Utilizes double-check async locking to guarantee there's only one instance of the object. It's lazy; it's initialized only when retrieving. <para/>
16
+
/// This method should be called even if the initialization func was synchronous.
17
+
/// </summary>
18
+
/// <remarks>The initialization func needs to be set before calling this, either in the ctor or via the other methods</remarks>
/// Utilizes double-check async locking to guarantee there's only one instance of the object. It's lazy; it's initialized only when retrieving. <para/>
26
+
/// This method should be called even if the initialization func was synchronous.
27
+
/// </summary>
28
+
/// <remarks>The initialization func needs to be set before calling this, either in the ctor or via the other methods</remarks>
/// <see cref="Get"/> should be used instead of this if possible. This method can block the calling thread! It's lazy; it's initialized only when retrieving. <para/>
36
+
/// This can still be used with an async initialization func, but it will block on the func.
37
+
/// </summary>
38
+
/// <remarks>The initialization func needs to be set before calling this, either in the ctor or via the other methods</remarks>
/// <see cref="Get(object[])"/> should be used instead of this if possible. This method can block the calling thread! It's lazy; it's initialized only when retrieving. <para/>
46
+
/// This can still be used with an async initialization func, but it will block on the func.
47
+
/// </summary>
48
+
/// <remarks>The initialization func needs to be set before calling this, either in the ctor or via the other methods</remarks>
0 commit comments