promise4j Promise for java. https://jitpack.io/#webee/promise4j To install the library add: repositories { jcenter() maven { url "https://jitpack.io" } } dependencies { compile 'com.github.webee:promise4j:v2.4.0' }