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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["The latest version available is 2.37.0-rc, with numerous previous versions listed up to 2.10.1."],["The page details the `GrpcBackgroundThreadsFactoryOption` within the Google Cloud C++ library, which allows applications to manage background threads with more control."],["Connections usually handle background tasks via a dedicated thread and `CompletionQueue`, however applications can supply their own `BackgroundThreadsFactory` for custom thread management."],["The options `GrpcBackgroundThreadPoolSizeOption`, `GrpcCompletionQueueOption`, and `GrpcBackgroundThreadsFactoryOption` are mutually exclusive, and using the `GrpcCompletionQueueOption` will ignore this option."],["The page defines the alias of the type `BackgroundThreadsFactory`."]]],[]]