code: def append(self, cb):
          
          self.callbacks.append(cb.callb)
          self.monitor = self.monitor | cb.callb.bit
  
          yield from self.pi._pigpio_aio_command(_PI_CMD_NB, self.handle,
                                                 self.monitor)
docs: Adds a callback.