Skip Montanaro <skip.montan...@gmail.com> writes:

> On Fri, Jan 13, 2017 at 3:23 AM, dieter <die...@handshake.de> wrote:
>
>> If what you want to timeout are not I/O operations, you can have a
>> look at "threading.Timer". It uses a separate thread, lets it wait
>> a specified time and then starts a specified function, unless
>> "cancel"ed.
>>
>
> Ooh, hadn't considered that. That would seem to do the trick. I assume the
> function to be executed will be run in the timer's thread, so will have to
> suitably lock any shared data.

Yes.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to