mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
minor tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f5a75498aa
commit
87127ab25f
@ -69,6 +69,8 @@ object.Constructor('Queue', Array, {
|
||||
|
||||
auto_stop: false,
|
||||
|
||||
catch_errors: true,
|
||||
|
||||
// NOTE: if true this is sync only untill the pool is filled or task
|
||||
// list is depleted...
|
||||
sync_start: false,
|
||||
@ -252,8 +254,9 @@ object.Constructor('Queue', Array, {
|
||||
|
||||
// promise result...
|
||||
// XXX is the err test here needed???
|
||||
;(err === undefined && res.catch) ?
|
||||
res.catch(function(err){
|
||||
err === undefined
|
||||
&& res.catch
|
||||
&& res.catch(function(err){
|
||||
that.trigger('taskFailed', task, err) })
|
||||
|
||||
// ignore errors...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user