Documentation/Source/eric6.Utilities.BackgroundService.html

changeset 4218
f542ad1f76c5
parent 3673
e26d7d0c1088
child 4222
1db92cbf62c9
equal deleted inserted replaced
4217:38e8903f9c2f 4218:f542ad1f76c5
215 <dd> 215 <dd>
216 flag to kill a running task (bool) 216 flag to kill a running task (bool)
217 </dd> 217 </dd>
218 </dl><a NAME="BackgroundService.serviceConnect" ID="BackgroundService.serviceConnect"></a> 218 </dl><a NAME="BackgroundService.serviceConnect" ID="BackgroundService.serviceConnect"></a>
219 <h4>BackgroundService.serviceConnect</h4> 219 <h4>BackgroundService.serviceConnect</h4>
220 <b>serviceConnect</b>(<i>fx, lang, modulepath, module, callback, onErrorCallback=None</i>) 220 <b>serviceConnect</b>(<i>fx, lang, modulepath, module, callback, onErrorCallback=None, onBatchDone=None</i>)
221 <p> 221 <p>
222 Public method to announce a new service to the background 222 Public method to announce a new service to the background
223 service/client. 223 service/client.
224 </p><dl> 224 </p><dl>
225 <dt><i>fx</i></dt> 225 <dt><i>fx</i></dt>
234 </dd><dt><i>module</i></dt> 234 </dd><dt><i>module</i></dt>
235 <dd> 235 <dd>
236 name to import (str) 236 name to import (str)
237 </dd><dt><i>callback</i></dt> 237 </dd><dt><i>callback</i></dt>
238 <dd> 238 <dd>
239 function on service response (function) 239 function called on service response (function)
240 </dd><dt><i>onErrorCallback</i></dt> 240 </dd><dt><i>onErrorCallback</i></dt>
241 <dd> 241 <dd>
242 function if client isn't available (function) 242 function called, if client isn't available
243 (function)
244 </dd><dt><i>onBatchDone</i></dt>
245 <dd>
246 function called when a batch job is done (function)
243 </dd> 247 </dd>
244 </dl><a NAME="BackgroundService.serviceDisconnect" ID="BackgroundService.serviceDisconnect"></a> 248 </dl><a NAME="BackgroundService.serviceDisconnect" ID="BackgroundService.serviceDisconnect"></a>
245 <h4>BackgroundService.serviceDisconnect</h4> 249 <h4>BackgroundService.serviceDisconnect</h4>
246 <b>serviceDisconnect</b>(<i>fx, lang</i>) 250 <b>serviceDisconnect</b>(<i>fx, lang</i>)
247 <p> 251 <p>

eric ide

mercurial