[Issue 8214] New: blocking option for TaskPool.finish()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 9 19:11:33 PDT 2012


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: nobody at puremagic.com
        ReportedBy: john at neggie.net


--- Comment #0 from John Belmonte <john at 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: -------


More information about the Digitalmars-d-bugs mailing list