Let's say we want to call a function that does some work, then we want to do our own work, then let the function know that we've completed our work. We could achieve that by doing this:
var s = () => {
console.log('start');
return Promise.resolve(() => { console.log('run after finish') });
};
const start = s();