[Gambas-user] sleep vs waith in serial respect forms/class

PICCORO McKAY Lenz mckaygerhard at gmail.com
Tue Aug 21 17:39:04 CEST 2018


ahhhhhhh! as wiki said (wiki don load property in the ide, too much dealy)
"waith" can be used inside event's, and sleep's cannot be used inside ?

noted said "The event loop is not called during a sleep, and so events are
not processed." so means that during the "sleep duration" no one event will
be raised right?

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2018-08-21 11:27 GMT-04:00 Jussi Lahtinen <jussi.lahtinen at gmail.com>:

> Please show the code. Wait allows events to be raised, sleep doesn't. But
> you cannot use wait inside of event handler.
> http://gambaswiki.org/wiki/lang/wait
>
>
> Jussi
>
> On Tue, Aug 21, 2018 at 6:17 PM PICCORO McKAY Lenz <mckaygerhard at gmail.com>
> wrote:
>
>> i setup a variable for the delay to waith info into my serial kit printer
>> classes
>>
>> but in some cases using sleep got into a undefined loop or does not end,
>> same when using waith
>>
>>
>> Lenz McKAY Gerardo (PICCORO)
>> http://qgqlochekone.blogspot.com
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180821/c5ea1fc5/attachment.html>


More information about the User mailing list