Lines Matching refs:cb2
679 cb2 = self._make_callback(bag, 17)
683 f.add_done_callback(cb2)
702 cb2 = self._make_callback(bag, 17)
706 f.add_done_callback(cb2)
710 f.remove_done_callback(cb2)
726 cb2 = self._make_callback(bag, 17)
730 f.add_done_callback(cb2)
776 cb2 = self._make_callback(bag, 2)
779 # Add one cb1 and one cb2.
781 f.add_done_callback(cb2)
783 # One instance of cb2 removed. Now there's only one cb1.
784 self.assertEqual(f.remove_done_callback(cb2), 1)
789 # After this there will be 6 instances of cb1 and one of cb2.
790 f.add_done_callback(cb2)
794 # Remove all instances of cb1. One cb2 remains.