Add setResult member function to Delay
Add setResult member function to Promise