A basic but performanent promise implementation.