Android promise

Android Library for promise/deferred

License

License

GroupId

GroupId

com.github.bdeneuter
ArtifactId

ArtifactId

android-promise
Last Version

Last Version

1.0.6
Release Date

Release Date

Type

Type

aar
Description

Description

Android promise
Android Library for promise/deferred
Project URL

Project URL

https://github.com/bdeneuter/android-promise
Source Code Management

Source Code Management

https://github.com/bdeneuter/android-promise.git

Download android-promise

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.bdeneuter/android-promise/ -->
<dependency>
    <groupId>com.github.bdeneuter</groupId>
    <artifactId>android-promise</artifactId>
    <version>1.0.6</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.bdeneuter/android-promise/
implementation 'com.github.bdeneuter:android-promise:1.0.6'
// https://jarcasting.com/artifacts/com.github.bdeneuter/android-promise/
implementation ("com.github.bdeneuter:android-promise:1.0.6")
'com.github.bdeneuter:android-promise:aar:1.0.6'
<dependency org="com.github.bdeneuter" name="android-promise" rev="1.0.6">
  <artifact name="android-promise" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.bdeneuter', module='android-promise', version='1.0.6')
)
libraryDependencies += "com.github.bdeneuter" % "android-promise" % "1.0.6"
[com.github.bdeneuter/android-promise "1.0.6"]

Dependencies

compile (1)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar +

Project Modules

There are no modules declared in this project.

android-promise

NOTE: I DEPRECATED THIS LIBRARY AS I AM USING NOW RXJAVA FOR ASYNC

A simple library for promise/deferred in Android. Instead of using an AsyncTask, you can return a deferred to the caller while you start work on a background thread. When the work is finished you can resolve or reject the deferred. The users of the promise object can add tasks that need to be executed when the deferred is resolved or rejected. The user can specify on which thread this task needs to be executed.

The user of the promise doesn't need to worry if a promise is already resolved or not. If it is already resolved, the task will be executed immediatly. If not, the task will be scheduled to be executed when the deferred is resolved.

See also http://bdeneuter.github.io/android-promise/

Versions

Version
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0