After the .resolve() method was called on the Deferred object, is it possible to get the arguments with which .resolve() was called by having this most dead (executed) Deferred object at its disposal? At the same time, I cannot set .then() or .done() callbacks before it is executed.

    1 answer 1

    You can hang up then after, and his arguments will arrive in his callback:

     const t = new Promise(resolve => resolve({test: new Date()})); setInterval(() => t.then(res => console.log(res)), 333);