[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eIConsumer<T>\u003c/code\u003e interface, found in the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common\u003c/code\u003e namespace, defines a consumer that can receive and process items.\u003c/p\u003e\n"],["\u003cp\u003eThis interface includes the \u003ccode\u003eReceive(IEnumerable<T> items)\u003c/code\u003e method, which accepts a collection of items of type \u003ccode\u003eT\u003c/code\u003e for processing.\u003c/p\u003e\n"],["\u003cp\u003eIt also features the \u003ccode\u003eReceiveAsync(IEnumerable<T> items, CancellationToken cancellationToken)\u003c/code\u003e method for asynchronously receiving and processing a collection of items, also allowing for cancellation requests.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eIConsumer<T>\u003c/code\u003e interface is 5.2.0, with several previous versions available, including 5.1.0, 5.0.0, 4.4.0, and 4.3.1.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Diagnostics.Common - Interface IConsumer<T> (5.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.IConsumer-1)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.2.0/Google.Cloud.Diagnostics.Common.IConsumer-1)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.1.0/Google.Cloud.Diagnostics.Common.IConsumer-1)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.0.0/Google.Cloud.Diagnostics.Common.IConsumer-1)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.4.0/Google.Cloud.Diagnostics.Common.IConsumer-1)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.3.1/Google.Cloud.Diagnostics.Common.IConsumer-1) \n\n public interface IConsumer\u003cT\u003e : IDisposable\n\nReference documentation and code samples for the Google.Cloud.Diagnostics.Common interface IConsumer\n\n\u003cbr /\u003e\n\nA consumer. \n\nInherited Members\n-----------------\n\n[IDisposable.Dispose()](https://learn.microsoft.com/dotnet/api/system.idisposable.dispose)\n\nNamespace\n---------\n\n[Google.Cloud.Diagnostics.Common](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common)\n\nAssembly\n--------\n\nGoogle.Cloud.Diagnostics.Common.dll\n\nMethods\n-------\n\n### Receive(IEnumerable\\\u003cT\\\u003e)\n\n void Receive(IEnumerable\u003cT\u003e items)\n\nAccepts an enumerable of items.\n\n### ReceiveAsync(IEnumerable\\\u003cT\\\u003e, CancellationToken)\n\n Task ReceiveAsync(IEnumerable\u003cT\u003e items, CancellationToken cancellationToken = default)\n\nAccepts an enumerable of items asynchronously."]]