CA SDM::.SPEL::. sleep(int)

Document created by TMACUL Champion on Mar 3, 2017
Version 1Show Document
  • View in full screen mode

Overview

Second delay

Usage

 

Results

 

Examples

 

sleep(10);

 

 

Sleep (int seconds)

 

Sleep(seconds), keep trying every second until the checkout is successful.

 

Example code:

 

int err_stat;

err_stat = 1;

while (err_stat) {

  send_wait(0, group_leader, "checkout", dob_ref);

  if (!msg_error()) {

    err_stat = 0;

  } else {

    sleep(1); // 1 second

  }

}

 

 

 

Where can I find Spel functions documentation? 

Attachments

    Outcomes