Sleep command

Rupert Cutler rupert.cutler at gmail.com
Wed Mar 4 03:23:54 EST 2015


Charging... STAND CLEAR!... Zap :)


Rupert Cutler
19 Marine Parade
Dovercourt
Harwich
CO12 3RA

Home: 01255 506136
Mobile: 07785 781 968

[image: Lifeboats] <http://www.rnli.org.uk>

The *RNLI* is the charity that saves lives at sea <http://www.rnli.org>

*24 times a day, every day! Click to see...*
<https://www.youtube.com/watch?v=qRdK8-uBEF0>

On Wed, Mar 4, 2015 at 4:48 AM, Reg Paling <reg.paling at lokanet.com> wrote:

> Hi Bas,
>
> From the Studio v6.1 Whatsnew61.pdf:
>
>    sleep() Function
>    A sleep() function has been added to allow you to suspend method
> execution for a specified
>    length of time. The function sleep(milliseconds) suspends execution for
> the specified
>    number of milliseconds, and returns true if execution was suspended
> successfully or false if
>    an error occurred. Note this function is not available in
> client-executed methods.
>
> I wonder what sort of error could cause it to return false, and what you
> could do about it if you trapped it?
>
> Cheers,
> Reg
>
>
> On 4/03/2015 3:40 pm, Bastiaan Olij wrote:
>
>> Hi All,
>>
>> Does Omnis have a sleep function where it just pauses for a few
>> milliseconds?
>> I need to halt execution of a method for a brief period of time to give
>> an external process a moment to finish and in this case I can't really
>> solve it with a timer..
>>
>>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>



More information about the omnisdev-en mailing list