How is everyone handling passing even variables to async loaded asset classes?

I know there’s a finished pin. That’s not what I’m talking about. Example as follows for my problem.

Event(Location) → Async Load → Finish → Set Location

Call Event once and pass it the location. Call it a second time immediately. The first async load will get the location of the second call not the first call. Note this is just a simple example. What I’m doing is a bit more complicated than that.

There needs to be a way to pass a payload otherwise this will always happen with async behaviors. I can’t see a workaround for this other than juggling states myself I guess in a map variable, but there’s no guarantee the async loads will happen in order so that’s not ideal either.

So far have had to just use blocking loading as I don’t see a workaround.

1 Like