Wrapper for creating timeouts and intervals. Works like component/emitter