Cancellation class
Leave feedback
On this page
Represents an object for requesting cancellation of an operation.
Learn more
- Indexing options: https://docs.groupdocs.com/search/python-net/indexing-options/
- Search options: https://docs.groupdocs.com/search/python-net/search-options/
The Cancellation type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the Cancellation class. |
| Method | Description |
|---|---|
| cancel | Requests cancellation of the ongoing operation. |
| cancel_after | Makes a request for cancellation after the expiration of the specified number of milliseconds. |
| Property | Description |
|---|---|
| is_cancelled | The property indicates whether cancellation has been requested. |
from groupdocs.search.common import Cancellation
# Create a cancellation object that will cancel after 10 seconds (10000 ms)
cancellation = Cancellation()
cancellation.cancel_after(10000)
- module
groupdocs.search.common
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.