__init__ constructor

On this page

init

Initializes a new instance of the Cancellation class.

def __init__(self):
    ...

Example

from groupdocs.search.common import Cancellation

cancellation = Cancellation()
cancellation.cancel_after(10000)  # cancel after 10 seconds

See Also

On this page