cancel method

void cancel()

Requests cancellation of the pyramid build operation.

Cancellation is cooperative. After cancellation is requested, the operation may continue until the executing code observes the request. If cancellation is observed, BuildRasterPyramidsOperation.getResult reports cancellation.