Summary: blocking option for TaskPool.finish()
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos

--- Comment #0 from John Belmonte <> 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:
------- You are receiving this mail because: -------

Reply via email to