Re: [code] Textadept: timeout-interval'd functions live on after reset (both old and new)

From: Mitchell <m.att.foicica.com>
Date: Wed, 7 Nov 2018 21:10:30 -0500 (EST)

Hi Phil,

On Wed, 7 Nov 2018, Phil S. wrote:

> Hi all, it seems like functions that are scheduled to repeat every foo
> interval accumulate over resets. After a couple dozen resets I notice that my
> every-5-seconds function is running far more often and it even seems with old
> closure state too.

I think it's worth asking yourself why you are calling `reset()` so often. The function was designed for users to quickly test configuration or theme changes, not for persistent use.

> Could I be wrong? Could this be changed? Keeping track of resets and having
> 'old' funcs notice they should die and thus return false-or-nil seems like a
> pretty unwieldy prospect to this API user =)

It would not be easy to change this, unfortunately.

Cheers,
Mitchell

-- 
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 Wed 07 Nov 2018 - 21:10:30 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Nov 2018 - 06:49:23 EST