kentonv/capnproto — pull request #143 by lambdaknight (2014-11-11 20:26:20+00:00)
Title: Add function to TaskSet for getting the number of Promise<void>s

Add function to TaskSet for getting the number of Promises current...ly in the TaskSet. This is a const function that doesn't change the TaskSet in any way and simply provides a little bit of additional information that can be useful. In my particular case, knowing the size allows me to queue up an extra task when the last task is executing to perform resource cleanup.