style: Rename dispose_thread_safe in PascalCase
This commit is contained in:
1 parent
d3e31e4e44
commit
d25db044af
3 files changed
+3
-3
No files matched your search
@@ -131,7 +131,7 @@ namespace Spark.Trading {
|
||||
}
|
||||
|
||||
void Unsubscribe() =>
|
||||
Disposable.dispose_thread_safe(ref sub);
|
||||
Disposable.DisposeThreadSafe(ref sub);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Spark.Core.Disposables {
|
||||
tmp?.Dispose();
|
||||
}
|
||||
|
||||
public static void dispose_thread_safe<T>(ref T? disposable) where T : class, IDisposable =>
|
||||
public static void DisposeThreadSafe<T>(ref T? disposable) where T : class, IDisposable =>
|
||||
Interlocked.CompareExchange(ref disposable, null, disposable)?.Dispose();
|
||||
|
||||
public static void DisposeAll<T>(this IList<T> source, bool clear) where T : IDisposable {
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Spark.Core.Reactive {
|
||||
}
|
||||
|
||||
public void Dispose() =>
|
||||
Disposable.dispose_thread_safe(ref _dispose);
|
||||
Disposable.DisposeThreadSafe(ref _dispose);
|
||||
|
||||
void _on_next(TableUpdate<T, TKey> input) {
|
||||
_state = input.state;
|
||||
|
||||
Reference in new issue
Block a user