A very minimal "Promise" implementation