Delay now returns a promise that eventually resolves.