# DurableStateWatchExtensions.WatchAsync(IDurableValue&lt;T&gt;, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.durablestatewatchextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.durablestatewatchextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Journaling/DurableStateWatchExtensions.cs#L30-L33)

```csharp
public static IAsyncEnumerable<ValueChange<T>> WatchAsync<T>(this IDurableValue<T> value, CancellationToken cancellationToken = default(CancellationToken))
```

Watches the committed value of a durable value.

### Parameters

- `value` (`IDurableValue<T>`): The durable value.
- `cancellationToken` (`CancellationToken`): The token which ends the watch.

### Returns

A stream which begins with the current committed value and delivers the latest value after each committed change.

### Exceptions

- `System.NotSupportedException`: `value` is not a built-in durable value registered with a journaled state manager.
