On 12 February 2010 05:20, Timothy Boronczyk <[email protected]> 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
> [email protected]
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
_______________________________________________
Geany mailing list
[email protected]
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany

Reply via email to