# ResponseCompletionSource.OnCompleted(Action&lt;object&gt;, object, short, ValueTaskSourceOnCompletedFlags)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.responsecompletionsource/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.responsecompletionsource/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Invocation/ResponseCompletionSource.cs#L34)

```csharp
public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)
```

Schedules the continuation action for this `System.Threading.Tasks.Sources.IValueTaskSource-1`.

### Parameters

- `continuation` (`Action<object>`): The continuation to invoke when the operation has completed.
- `state` (`object`): The state object to pass to `continuation` when it's invoked.
- `token` (`short`): An opaque value that was provided to the `System.Threading.Tasks.ValueTask` constructor.
- `flags` (`ValueTaskSourceOnCompletedFlags`): The flags describing the behavior of the continuation.
