closeAndAwait
Closes this document without blocking the calling thread while waiting for an active PDFium operation to finish.
Waiting and cleanup run non-cancellably once this function is invoked. The operation is idempotent and shares the failure semantics of close.