Add Promise.all method.