Created
March 9, 2014 22:32
-
-
Save Elv13/9455953 to your computer and use it in GitHub Desktop.
sn callback API protype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function module.spawn2(command,args) | |
local args = args or {} | |
--args.callback -- A function | |
--args.tags -- a tag or table of tags | |
--args.tag same as tags | |
--args.property -- Table or client properies | |
--with_shell --boolean | |
-- Return object | |
-- { | |
-- pid --pid_t | |
-- sn_id -- Request identifier | |
-- --All "args" | |
-- } | |
-- Return object signal | |
-- "spawn::initiated" | |
-- "spawn::canceled" | |
-- "spawn::completed" | |
-- "spawn::timeout" | |
-- "spawn::change" | |
-- "manage" | |
-- "unmanage" | |
-- where the "request" array can be modified and modification will take effect | |
-- until tyrannical decide to apply the properties, then they wont | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment