New Posts New Posts RSS Feed: Minor bug in AsyncParallelTask
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Minor bug in AsyncParallelTask

 Post Reply Post Reply
Author
jsobell View Drop Down
Groupie
Groupie
Avatar

Joined: 02-Apr-2009
Location: Australia
Posts: 80
Post Options Post Options   Quote jsobell Quote  Post ReplyReply Direct Link To This Post Topic: Minor bug in AsyncParallelTask
    Posted: 16-Aug-2010 at 7:16pm
If Execute is called on an AsyncParallelTask object without adding any AsyncQuery objects then the Execute Action is never called.
This is most apparent in debugging, when you comment out the chained commands. Also, if you are adding queries through code and some/all are optional, then this becomes a serious problem unless you insert check code.
A check should be made in Execute(), and if there are no async queries then the action should be called immediately.
 
It's funny, when I wrote my own implementation of this feature (before switching to using DF) I had exactly the same bug in my own code :)
 
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 16-Aug-2010 at 7:19pm

Confirmed.  This will be fixed in the next release.



Edited by ting - 19-Aug-2010 at 5:22pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down