Re: [textadept] experimental spawn

From: Brian Schott <briancsch....at.gmail.com>
Date: Fri, 22 Oct 2010 18:25:12 -0700

Something like this, basically:

-- Emit "some_event" every two seconds
events.emit_timeout("some_event", 2000)

On Fri, Oct 22, 2010 at 6:11 PM, Brian Schott <briancsch....at.gmail.com> wrote:
>  Looks useful. What do you think about a feature for executing lua code
> at an interval? My use case is to update code auto-completion based on
> the current buffer every 5 seconds or so. Something like a lua interface
> to g_timout_add or g_timeout_add_seconds that allows a lua function to
> be called at an interval. Since it's integrated with GTK's main loop, it
> shouldn't cause any threading problems.
>
> http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-timeout-add
> http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-timeout-add-seconds
>
Received on Fri 22 Oct 2010 - 21:25:12 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:52:19 EST