Building Distributed
Applications
Using the Progress AppServer


Cancelling Asynchronous Requests

You can cancel all asynchronous requests that are executing or pending on behalf of the client on a particular AppServer by executing the CANCEL-REQUESTS( ) method on the server object handle. This method raises the STOP condition in the context of the asynchronous procedure currently executing and causes results to be returned for any pending asynchronous requests, as described in the following paragraph.

The associated event procedures execute for all cancelled requests the next time the client blocks for I/O or executes the PROCESS EVENTS statement. Each event procedure receives the following results, depending on the final state of its corresponding asynchronous request:

NOTE: If you disconnect an AppServer using the DISCONNECT( ) method, this also cancels all asynchronous requests still running or pending on the AppServer. For more information, see the "Disconnecting from an AppServer Instance" section.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095