void bindSignals ( final Stage < ? > target , final Collection < ? extends Stage < ? > > stages ) { target . whenCancelled ( ( ) -> { for ( final Stage < ? > f : stages ) { f . cancel ( ) ; } } ) ; }
Bind the given collection of stages to the target completable which if cancelled or failed will do the corresponding to their collection of stages .