Method ServiceApp():pause() Foundation

Service received "pause" control request.

Syntax
:pause() --> self
Return

The class method :pause() returns the class object.

Description

This callback is executed when the service is asked to interrupt its execution. This occurs via a "stop" request sent by a service control application. The service then changes its status from "running" to "paused".

The :pause() callback method can be used to implement suitable behavior for pausing a running service. To do this, the class method must be overwritten in a user-defined class derived from ServiceApp.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.