http://d.puremagic.com/issues/show_bug.cgi?id=8214

           Summary: blocking option for TaskPool.finish()
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: j...@neggie.net


--- Comment #0 from John Belmonte <j...@neggie.net> 2012-06-09 19:13:35 PDT ---
In std.parallelism, I have a simple need to block on all tasks in a pool being
completed.  (In my use case tasks don't return a value, and errors within a
task are discarded.)  Currently the only way to block would be to manually
maintain a collection of all tasks added to a pool.

I propose that TaskPool.finish() take a backwards-compatible option to block:

   finish(bool block=false)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to