Re: [code] [textadept] Periodic updatse for modules

From: Chris Emerson <c-ta.att.mail.nosreme.org>
Date: Fri, 30 Jan 2015 09:39:50 +0000

Hi,

On Fri, Jan 30, 2015 at 10:25:18AM +0100, Simon Lundmark wrote:
> I was wondering if it is possible or could be added that modules can
> subscribe to an event that are periodically updated? Like a 20hz
> update-function or similar.

There's a timeout() function which calls a function at regular intervals.
(Though I've just noticed it isn't yet implemented in the curses version).
Alternatively, you may be able to use spawn with a process which writes
to its stdout regularly.

Chris

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 30 Jan 2015 - 04:39:50 EST

This archive was generated by hypermail 2.2.0 : Fri 30 Jan 2015 - 06:44:17 EST