def enableConcurrencyChecks(maxConcurrency, raiseException=True):
 global g_max_concurrency, g_max_concurrency_raise_exception
 assert (maxConcurrency >= 0)
 g_max_concurrency = maxConcurrency
 g_max_concurrency_raise_exception = raiseException
 return

def enableConcurrencyChecks ( maxConcurrency , raiseException = True ) : global g_max_concurrency , g_max_concurrency_raise_exception assert ( maxConcurrency >= 0 ) g_max_concurrency = maxConcurrency g_max_concurrency_raise_exception = raiseException return
enable the diagnostic feature for debugging unexpected concurrency in acquiring connectionwrapper instances .