closes #7 (Add possibility to dispatch promise)