Lines Matching refs:cb1
678 cb1 = self._make_callback(bag, 42)
682 f.add_done_callback(cb1)
686 f.remove_done_callback(cb1)
687 f.remove_done_callback(cb1)
701 cb1 = self._make_callback(bag, 42)
705 f.add_done_callback(cb1)
709 f.remove_done_callback(cb1)
711 f.remove_done_callback(cb1)
725 cb1 = self._make_callback(bag, 42)
729 f.add_done_callback(cb1)
775 cb1 = self._make_callback(bag, 1)
779 # Add one cb1 and one cb2.
780 f.add_done_callback(cb1)
783 # One instance of cb2 removed. Now there's only one cb1.
789 # After this there will be 6 instances of cb1 and one of cb2.
792 f.add_done_callback(cb1)
794 # Remove all instances of cb1. One cb2 remains.
795 self.assertEqual(f.remove_done_callback(cb1), 6)