public final class CancellationTokenSource extends Object implements AutoCloseable
CancellationToken that an operation should be canceled.CancellationToken| Constructor and Description |
|---|
CancellationTokenSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close() |
CancellationToken |
getToken() |
boolean |
isCancellationRequested() |
public void cancel()
public void close()
close in interface AutoCloseablepublic CancellationToken getToken()
public boolean isCancellationRequested()
Copyright © 2026 Aspose Pty Ltd. All rights reserved.