public class InterruptionTokenSource extends Object implements com.aspose.ms.System.IDisposable
Source that provides token used to interrupt long operations and triggers interruption. Must be disposed!
| Constructor and Description |
|---|
InterruptionTokenSource()
Creates source
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes source
|
InterruptionToken |
getToken()
Token used to interrupt long operations
|
void |
interrupt()
Triggers the interruption of operation
|
public final void dispose()
Disposes source
dispose in interface com.aspose.ms.System.IDisposablepublic final InterruptionToken getToken()
Token used to interrupt long operations
public final void interrupt()
Triggers the interruption of operation
Copyright (c) 2008-2021 Aspose Pty Ltd. All Rights Reserved.