poll Document
Continually checks the document status (via the Gini API) until the document is fully processed. To avoid flooding the network, there is a pause of at least the number of seconds that is set in the POLLING_INTERVAL constant of this class. This method returns a Task which will resolve to a new document instance. It does not update the given document instance.
Parameters
document
The document which will be polled.