def transaction(self, function):
    with self.instance() as i:
      return function(i)
Set the direction of the transition.
dataset/ETHPy150Open JeremyOT/Toto/toto/tasks.py/InstancePool.transaction--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/q_pixmap_transition.py/QDirectedTransition.setDirection