BitBucket: changes made via REST API calls are eventually consistent

What is the recommended practise when using the REST API calls, I have noticed any mutations to the repo are reflected only after a short delay, this delay differs each time.

What I mean by that is if I close an existing pull request and then create a new one via the REST API calls, and then if I immediately request for a list of Pull Requests, I don’t see the newly created PR appear in the results till say after 5 to 15 seconds (varies).

I guess returning a future and then resolving the future is the way forward, any examples of how others have done this? Or any examples from Atlassian itself?

Originally raised at https://community.atlassian.com/t5/Bitbucket-questions/BitBucket-changes-made-via-REST-API-calls-are-eventually/qaq-p/1116541