Sleep command
Doug Easterbrook
doug at artsman.com
Wed Mar 4 07:48:22 EST 2015
hi bas:
you didn't mention what kind of process -- but I saw server. If its postgres that you are waiting for something to finish -- we have use listen/notify feature in the database.
basically, you tell postgres to notify you on changes to certain data.
then you get a callback when the change has occurred.
normally we use if to get told of changes to constants or setup files -- but you could use it for anything.
it avoids polling the database.
not sure if thats close to what you are doing --- but perhaps an option.
Doug Easterbrook
Arts Management Systems Ltd.
mailto:doug at artsman.com
http://www.artsman.com
Phone (403) 536-1205 Fax (403) 536-1210
> On Mar 4, 2015, at 12:07 AM, Bastiaan Olij <bastiaan at basenlily.me> wrote:
>
> Hey Vik,
>
> Nope.. just waiting for some things to finish on a server so
> unfortunately sending it a call to start it that finishes it right away,
> and then polling it occasionally to see if its done. In this case I have
> a need to wait until its done before the user is allowed to do more.
>
> But good tip on the external program thought the downside of that
> approach is that Omnis will be unresponsive until the program finishes
> (oh the number of users that force quit our application because they
> think it has crashed.... )
>
> Cheers,
>
> Bas
>
> On 4/03/2015 5:22 pm, Vik Shah wrote:
>> Bas,
>>
>> Would that external process be a command call?
>> If so, there is a difference between launch program and run program, providing a return value in launch program causes it to wait for that command to complete its execution.
>>
>> Regards,
>>
>> Vik Shah
>>
>>
>>> On 4 Mar 2015, at 14:40, Bastiaan Olij <bastiaan at basenlily.me> 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..
>>>
>>> --
>>> Kindest Regards,
>>>
>>> Bastiaan Olij
>>> e-mail: bastiaan at basenlily.me
>>> web: http://www.basenlily.me
>>> Skype: Mux213
>>> http://www.linkedin.com/in/bastiaanolij
>>>
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>>
>>
>
>
> --
> Kindest Regards,
>
> Bastiaan Olij
> e-mail: bastiaan at basenlily.me
> web: http://www.basenlily.me
> Skype: Mux213
> http://www.linkedin.com/in/bastiaanolij
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list