# IEventHubReceiver.ReceiveAsync(int, TimeSpan, 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/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/IEventHubReceiver.cs#L38)

```csharp
public virtual Task<IEnumerable<EventData>> ReceiveAsync(int maxCount, TimeSpan waitTime, CancellationToken cancellationToken)
```

Sends an asynchronous request for more messages from the partition.

### Parameters

- `maxCount` (`int`): The maximum number of messages to return.
- `waitTime` (`TimeSpan`): The maximum wait time.
- `cancellationToken` (`CancellationToken`): The token used to cancel the operation.

### Returns

The received messages.
