Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,13 @@ Disposables are a part of `StateBase` that allow users to tie `IDisposable` refe
lifetime, guaranteeing disposal and delegate execution on state's `Dispose`, without overriding the method

```csharp
// Available API
Disposables.Add(fooDisposable);
Disposables.Add(() => Unsubscribe());
Disposables.Add(fooDisposable, barDisposable);
Disposables.ThenAdd(fooDisposable).ThenAdd(barDisposable).ThenAdd(() => Unsubscribe());

// Example Usage
public class LoadingState : StateBase<ILoadingScreenView>
{
private CancellationTokenSource _loadingCts;
Expand Down