Define the 'once' method. It runs the callback after the sleep