[Geany] coroutines under geanylua

Enrico Tröger enrico.troeger at xxxxx
Sat Feb 13 15:06:15 UTC 2010


On Thu, 11 Feb 2010 21:04:18 -0500, Timothy wrote:

Hey,


>I guess I misunderstood coroutines then. Apparently Lua only has
>"asymmetric coroutines" typically usable as generators? I did see
>http://www.lua.org/pil/9.4.html which talks about emulating
>multi-threading by managing several coroutines which always yield,
>though I suspect the dispatcher's execution would still block Geany
>with that approach. Either way, thanks Jeff and Lex.
>
>While not the most elegant solution, I'll script a wrapper around the
>commands which will be responsible for alerting the user once the task
>has completed. Then I'll invoke the wrapper from the plug-in with
>geany.launch( ).

I don't know at all but Geany provides utils_spawn_async() which
executes a command asynchronous, i.e. Geany won't block during
execution. Not sure whether it's available in the geanylua plugin but
in case not, it probably could be added.


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20100213/6fa758e9/attachment.pgp>


More information about the Users mailing list