Static create*FuncWrapper()
Makes Promise::createThenFuncWrapper()
and Promise::createNotifyFuncWrapper()
static to prevent that the Promise
is used in the created lambdas as the promise might not exist any more when the lambda are called causing crashes.
And it fixes the intendation of Promise.h
.