Skip to content

Commit

Permalink
Expose SingleAssignmentDisposableValue (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fijo authored Apr 19, 2023
1 parent 3507d5e commit 677aeb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace System.Reactive.Disposables
/// Represents a disposable resource which only allows a single assignment of its underlying disposable resource.
/// If an underlying disposable resource has already been set, future attempts to set the underlying disposable resource will throw an <see cref="InvalidOperationException"/>.
/// </summary>
internal struct SingleAssignmentDisposableValue
public struct SingleAssignmentDisposableValue
{
private IDisposable? _current;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,12 @@ public SingleAssignmentDisposable() { }
public bool IsDisposed { get; }
public void Dispose() { }
}
public struct SingleAssignmentDisposableValue
{
public System.IDisposable? Disposable { get; set; }
public bool IsDisposed { get; }
public void Dispose() { }
}
public abstract class StableCompositeDisposable : System.IDisposable, System.Reactive.Disposables.ICancelable
{
protected StableCompositeDisposable() { }
Expand Down

0 comments on commit 677aeb2

Please sign in to comment.