Write `Ten.Promise.wrap` method