[Geany] coroutines under geanylua

Lex Trotman elextr at xxxxx
Thu Feb 11 21:06:24 UTC 2010


On 12 February 2010 05:20, Timothy Boronczyk <tboronczyk at gmail.com> wrote:
> Thanks for the response, Nick.
>
> The Lua code runs, but Geany becomes non-responsive while the spawned
> task is executing. Once the task finishes, control is given back to
> the IDE.
>
> I guess what I'm ultimately trying to do is invoke the command as a
> background process allowing the user to continue using Geany, and then
> provide a dialog to alert the user once the task has completed.

Thats not what co-routines do, resume doesn't return until the
co-routine exits or yields.  Co-routines are not for running separate
threads, they are for exiting and resuming functions from any nested
location.

Cheers
Lex

>
> -Tim
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>



More information about the Users mailing list