@decorator
def spin_first(f, self, *args, **kwargs):
    self.spin()
    return f(self, *args, **kwargs)


#--------------------------------------------------------------------------
# Classes
#--------------------------------------------------------------------------
Call spin() to sync state prior to calling the method.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/spin_first