Template:Daemon:Run syntax: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
replaced, so any manual edits will be lost. You've been warned. --> | replaced, so any manual edits will be lost. You've been warned. --> | ||
<p class="syntax"><span class="squareb">[</span><span class="term">%sl</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">daemon</span><span class="literal">:Run</span><span class="literal">(</span> <span class="term" title="String">commands</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Object">Input=</span><span class="squareb">]</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Object">Output=</span><span class="squareb">]</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="comma">,</span> - | <p class="syntax"><span class="squareb">[</span><span class="term">%sl</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">daemon</span><span class="literal">:Run</span><span class="literal">(</span> <span class="term" title="String">commands</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Object">Input=</span><span class="squareb">]</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Object">Output=</span><span class="squareb">]</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="comma">,</span> - | ||
<span class="squareb">[</span><span class="literal" title="Object">Info=</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="literal">)</span></p> | <span class="squareb">[</span><span class="literal" title="Object">Info=</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="literal">)</span> | ||
Throws [[DaemonLost class|DaemonLost]], [[IncorrectDaemonState class|IncorrectDaemonState]]</p> |
Latest revision as of 20:57, 28 November 2012
[%sl =] daemon:Run( commands, [[Input=] object], [[Output=] object], - [Info= object]) Throws DaemonLost, IncorrectDaemonState