Home Cooker Classes Others Rice CookerGX
Classes  >  sleep  >  Sleep()
sleep class : Sleep() method

Description

Sleeps during the specified time without freeze.

Syntax

sleepInstance.Sleep()

Arguments

None

Return value

None

Sample code

//anySleep is an any instance of sleep type.

anySleep.Sleep();

Notes

The times argument * the span argument is the sleep time(millisecond).

The following steps will be repeated the specified times (the times argument).

Step1 : Freezes the specified span (the span argument).

Step2 : Processes the events after the freeze.

Links for reference

Copyright © Rice All rights reserved.