[ Version ( since = "0.13.1" ) ]
public async DocumentsDocument copy_document_async (DocumentsDocument document, Cancellable? cancellable) throws Error
Copy the given document
, producing a duplicate document in the same folder and returning its
DocumentsDocument.
this and document
are both reffed when this function is called, so can safely be unreffed
after this function returns.
For more details, see copy_document, which is the synchronous version of this function.
When the operation is finished, callback
will be called. You can then call copy_document_async.end
to get the results of the operation.
this | |
document |
the DocumentsDocument to copy |
cancellable |
optional Cancellable object, or |
callback |
a TaskReadyCallback to call when the operation is finished, or |
user_data |
data to pass to the |