As is maybe clear from this code, I'm a bit unsure about how to deal with promises. like, generally.
I'd imagine there's gotta be a cleaner, better looking way to do this, but this is what I could come up with. The problem is complicated by the requirement that I want to use the JSON parsing as part of the check when deciding to retry.
As is maybe clear from this code, I'm a bit unsure about how to deal with promises. like, generally.
I'd imagine there's gotta be a cleaner, better looking way to do this, but this is what I could come up with. The problem is complicated by the requirement that I want to use the JSON parsing as part of the check when deciding to retry.
Feedback greatly greatly appreciated.