Any Reason Not To Always Use Async

I rarely ever use multiple batchPlay calls in my plugins, and it’s working perfectly fine. As described here, it may even execute way slower than stacking multiple descriptors in one batchPlay when using the new API (but that’s a different topic).

I usually put everything in one single batchPlay call. I think even if you have two async batchPlay calls following each other (without await), it might not even cause a problem in most cases. If I understood it correctly, Photoshop puts these on some kind of “execution” queue and it can’t execute multiple things parallely anyways, can it? I personally never had any race conditions or false order of execution.

I wouldn’t call that a getter. Sure, it will return the color in the end, but it’s based on user input and can be undefined, too. If the user decides to go make some coffee in the meantime, showColorPicker might return the value after a few minutes, which is the best example for async behaviour :slight_smile: