Set timeout on save
Contents
[
Hide
]
Set timeout on save
Aspose.CAD for Java API allows you to set a timeout on save. This might be helpful in cases where the saving process is taking a lot of time or consuming a lot of memory. For this, the API provides the InterruptionTokenSource class. The InterruptionTokenSource class provides a token that is used to interrupt long operations.
Sample Code
The following code snippet demonstrates the use of the InterruptionTokenSource class.