A 65-year-old man presents with melaena and hypotension. He is tachycardic and pale. Initial resuscitation is commenced. What is the most appropriate timing of endoscopy for suspected non-variceal upper gastrointestinal bleeding in a haemodynamically stabilised patient?