6 Dec
                
                    2005
                
            
            
                6 Dec
                
                '05
                
            
            
            
        
    
                9:43 a.m.
            
        On 12/6/05, Joel Reymont 
I'm trying to implement a better waitForChildren from the docs for Control.Concurrent.
I would like to know when all the children exit, basically, and I thought it would be neat to try to do that with STM.
I apologise if this doesn't make sense (I'm fairly new to Haskell), but wouldn't a single shared counter be sufficient for this? Increment for each child launched. Decrement by each finished child. When it's back down to zero, you're done. Regards, Maarten