# IEventHubReceiver.CloseAsync(CancellationToken)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/IEventHubReceiver.cs#L37)

```csharp
public virtual Task CloseAsync(CancellationToken cancellationToken)
```

Sends a cleanup message which can be canceled.

### Parameters

- `cancellationToken` (`CancellationToken`): The token used to cancel the operation.

### Returns

A task representing the operation.
