Visit Mozilla.org

nsICancelable

From MDC


The nsICancelable interface provides a means to cancel an operation that is in progress.

Contents

nsICancelable is defined in netwerk/base/public/nsICancelable.idl. It is scriptable and is currently under review.

Inherits from: nsISupports

[edit] Method overview

void cancel(in nsresult aReason);

[edit] Methods

[edit] cancel()

Call this method to request that this object abort whatever operation it may be performing.

 void cancel(
   in nsresult aReason
 );
[edit] Parameters
aReason
A failure code indicating why the operation is being canceled. It is an error to pass a success code.