X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/7233039f9fa4599c5c76fef4ff4534c996c64c06..e1450f8828c1be4e290cec0a34538ebe6cb86b50:/asyncshell.lua diff --git a/asyncshell.lua b/asyncshell.lua index 36ccc47..0aafa17 100644 --- a/asyncshell.lua +++ b/asyncshell.lua @@ -10,11 +10,9 @@ -- How to use... -- ...asynchronously: -- asyncshell.request('wscript -Kiev', function(f) wwidget.text = f:read("*l") end) --- ...synchronously +-- ...synchronously: -- widget:set_text(asyncshell.demand('wscript -Kiev', 5):read("*l") or "Error") --- This is more cpu demanding, but makes things faster. - local spawn = require('awful.util').spawn asyncshell = {}