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"]],[["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-08-04 UTC."],[[["This webpage details the `ResourcesExhaustedBehavior` enum within the `Google.Cloud.Spanner.V1` namespace, which is part of the `Google.Cloud.Spanner.V1.dll` assembly."],["The `ResourcesExhaustedBehavior` enum controls what happens when the `MaximumActiveSessions` limit is reached in Google Cloud Spanner."],["The enum defines two possible behaviors: `Block`, where operations wait for resources, and `Fail`, where operations immediately fail with a `ResourceExhausted` error."],["The latest version detailed on this page is 5.0.0-beta05, while version 3.9.0 is also detailed."],["The content of this page spans multiple versions, ranging from the latest beta to version 3.5.0."]]],[]]