# IQueueAdapterReceiver.Shutdown(TimeSpan, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.iqueueadapterreceiver/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.iqueueadapterreceiver/methods/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Orleans.Streaming/QueueAdapters/IQueueAdapterReceiver.cs#L82)

```csharp
public virtual Task Shutdown(TimeSpan timeout, CancellationToken cancellationToken)
```

Shuts down this receiver and cleans up.

### Parameters

- `timeout` (`TimeSpan`): The timeout for this operation.
- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

A `System.Threading.Tasks.Task` representing the operation.
