The operation is blocked until a currently running operation
completes and releases its Spanner session. If the operation is
synchronous, the thread will be blocked until it can complete.
If the operation is asynchronous, it will be completed on the
threadpool when resources become available.
Fail
The operation will fail with an exception with the ErrorCode set to ResourceExhausted.
[[["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\u003eResourcesExhaustedBehavior\u003c/code\u003e enum specifies how operations should behave when the maximum number of active sessions (\u003ccode\u003eMaximumActiveSessions\u003c/code\u003e) is reached.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 5.0.0-beta05, and the page provides links to previous versions, going back to version 3.5.0, for the \u003ccode\u003eGoogle.Cloud.Spanner.V1.ResourcesExhaustedBehavior\u003c/code\u003e element.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBlock\u003c/code\u003e and \u003ccode\u003eFail\u003c/code\u003e are the two options available in the \u003ccode\u003eResourcesExhaustedBehavior\u003c/code\u003e enum.\u003c/p\u003e\n"],["\u003cp\u003eWhen set to \u003ccode\u003eBlock\u003c/code\u003e, an operation will wait for a Spanner session to become available, while \u003ccode\u003eFail\u003c/code\u003e will immediately throw an exception when resources are exhausted.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourcesExhaustedBehavior\u003c/code\u003e element is part of the Google.Cloud.Spanner.V1 namespace and its implementation can be found within the Google.Cloud.Spanner.V1.dll assembly.\u003c/p\u003e\n"]]],[],null,[]]