syside.gc.set_threshold set_threshold(arg: int, /) → None Set the garbage collector threshold, 0 disables collection. Negative values raise ValueError. Garbage collector will automatically run only when it tracks more than threshold new objects since last collection.