A small promise implementation for fun.