How to I poll for a long running response from the code snippets below, I need the response to full execute before I get to the result code block