# ScheduledTaskAwaiter.OnCompleted(Action)

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

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/ScheduledTask.cs#L855)

```csharp
public void OnCompleted(Action continuation)
```

Schedules the continuation action that's invoked when the instance completes.

### Parameters

- `continuation` (`Action`): The action to invoke when the operation completes.

### Exceptions

- `System.ArgumentNullException`: The `continuation` argument is null (Nothing in Visual Basic).
