# DurableSignal&lt;T&gt;.TryWaitAsync(DateTimeOffset)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durablesignal-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durablesignal-1/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/DurableSignal.cs#L85-L98)

```csharp
public DurableTask<(bool Received, T Value)> DurableSignal<T>.TryWaitAsync(DateTimeOffset deadline)
```

Creates a definition which waits for this signal until `deadline`.

### Parameters

- `deadline` (`DateTimeOffset`): The time, measured using host logical time, at which the wait stops.

### Returns

A definition which, awaited within a durable execution, runs as part of that execution and completes with `(true, value)` when the signal wins the race with `deadline`, and with `(false, default)` when the deadline wins.
