# ITimerManager.Delay(TimeSpan, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.timers.internal.itimermanager/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.timers.internal.itimermanager/methods/)

```csharp
public abstract Task<bool> Delay(TimeSpan timeSpan, CancellationToken cancellationToken = default(CancellationToken))
```

Returns a task which will complete when the specified timespan elapses or the provided cancellation token is canceled.

### Parameters

- `timeSpan` (`TimeSpan`): The time span.
- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

`true` if the timer ran to completion; otherwise `false`.
