What's CUDA StreamGuard?

What’s role CUDA Stream Guard??

What can I use it for?

The official document lacks explanation, where can I see the detailed explanation?

The libtorch docs explain its usage and also the inline docs might be helpful.

Front and back of guard “{}” What is the role?
Is it vital?
I want a C++ multi-threading multi-stream environment. Is it right to use Guard?