Skip to content

Why are curly braces required between InitApi and ShutdownApi? #2897

Answered by jmklix
buddhike asked this question in Q&A
Discussion options

You must be logged in to vote

This serves the purpose of adding a scope guard to all of the sdk calls. It makes sure that the sdk is correctly and completely initialized before any other sdk calls are make. And it makes sure everything is destroyed and ready to be cleaned up at the end of the curly braces.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@buddhike
Comment options

Answer selected by buddhike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants