Connections need to perform background work on behalf of the application. Normally they just create a background thread and a CompletionQueue for this work, but the application may need more fine-grained control of their threads.
In this case the application can provide its own BackgroundThreadsFactory and it assumes responsibility for creating one or more threads blocked on its CompletionQueue::Run().
[[["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-14 UTC."],[[["\u003cp\u003eThe page provides a detailed list of versions for \u003ccode\u003eGrpcBackgroundThreadsFactoryOption\u003c/code\u003e, starting from version 2.10.1 up to the latest release candidate 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eVersion 2.15.1 introduces changes to the \u003ccode\u003eBackgroundThreadsFactory\u003c/code\u003e, allowing applications more control over their threads for background work.\u003c/p\u003e\n"],["\u003cp\u003eApplications can supply their custom \u003ccode\u003eBackgroundThreadsFactory\u003c/code\u003e to manage thread creation and associate them with the \u003ccode\u003eCompletionQueue::Run()\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGrpcBackgroundThreadPoolSizeOption\u003c/code\u003e, \u003ccode\u003eGrpcCompletionQueueOption\u003c/code\u003e, and \u003ccode\u003eGrpcBackgroundThreadsFactoryOption\u003c/code\u003e are mutually exclusive, with \u003ccode\u003eGrpcBackgroundThreadsFactoryOption\u003c/code\u003e being ignored if \u003ccode\u003eGrpcCompletionQueueOption\u003c/code\u003e is set.\u003c/p\u003e\n"],["\u003cp\u003eThe provided content has an alias of the type \u003ccode\u003eBackgroundThreadsFactory\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]