asyncPage has 2 static methods.
Call asyncPage::startOutput()
before sending anyoutput back to the client. This will start the output buffer.
Call asyncPage::sendOutput()
after sending any output to the client. This will close a connection to the browser and allow you to run a long-running task afterwords without holding up the browser.