This page describes how to set a timeout for a single statement execution using
the Spanner client libraries. This can be used to override the
default timeout configuration of the client library. The statement fails with a
DEADLINE_EXCEEDED
error if the statement cannot finish within the given
timeout value.
These samples show how to set a timeout for a single statement execution in the Cloud Spanner client library.