code: def turn_on(self) -> "Signal":
          
          if _logger is not None:
              self._log(INFO, "turn-on")
          self._is_on = True
          while not self._queue.is_empty():
              self._queue.pop()
          return self
docs: Turns on the signal. If processes are waiting, they are all resumed. This may be invoked from any code.
  
          Remark that while processes are simultaneously resumed in simulated time, they are effectively resumed in the
          sequence corresponding to the queue discipline. Therefore, if one of the resumed processes turns the signal back
          off, remaining resumed processes join back the queue. If the queue discipline is not monotonic (for instance,
          if it bears a random component), then this toggling of the signal may reorder the processes.