# ITimerManager Methods

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

## Delay(TimeSpan, CancellationToken) {#delay-system-timespan-system-threading-cancellationtoken-5dc053bf}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.timers.internal.itimermanager/methods/delay-system-timespan-system-threading-cancellationtoken-5dc053bf/)

```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`.
