a minimal deferred-like library. (w/o Promise)