FindSessionById and CreateSession are both asynchronous calls. It's possible for the delegate to get called immediately (in case some parameters are obviously wrong) but most of the time it will be called later. Some OSS also calls the delegate in the next tick in case there is an error.
It means that capturing bSuccess as reference in lambdas won't work properly most of the time.
Hello Bastien, as always, thank you so much for the pull requests!! We've filed bugs internally and will integrate your contribution to future releases.
FindSessionById
andCreateSession
are both asynchronous calls. It's possible for the delegate to get called immediately (in case some parameters are obviously wrong) but most of the time it will be called later. Some OSS also calls the delegate in the next tick in case there is an error.It means that capturing
bSuccess
as reference in lambdas won't work properly most of the time.