We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 82d8aed + 747f14a commit c0024e4Copy full SHA for c0024e4
README.md
@@ -483,6 +483,13 @@ Disposables are a part of `StateBase` that allow users to tie `IDisposable` refe
483
lifetime, guaranteeing disposal and delegate execution on state's `Dispose`, without overriding the method
484
485
```csharp
486
+// Available API
487
+Disposables.Add(fooDisposable);
488
+Disposables.Add(() => Unsubscribe());
489
+Disposables.Add(fooDisposable, barDisposable);
490
+Disposables.ThenAdd(fooDisposable).ThenAdd(barDisposable).ThenAdd(() => Unsubscribe());
491
+
492
+// Example Usage
493
public class LoadingState : StateBase<ILoadingScreenView>
494
{
495
private CancellationTokenSource _loadingCts;
0 commit comments