Global variable that only exists during initial call + async continuations
Hey so in my app I have a transition from void to async. During the initial call to the async part (the synchronous part) and all continuations, I want to be able to set a global variable, and only for continuations that originate from that original call. This is so that I can associate different globals to the same async call.
The void to async part also happens on my app's main thread, and continuations ofc only run on the main thread.
Is there a way to do this?
The void to async part also happens on my app's main thread, and continuations ofc only run on the main thread.
Is there a way to do this?