mirror of
https://github.com/tommyskeff/futur4j.git
synced 2026-01-17 23:16:01 +00:00
hotfix 2.1.1
This commit is contained in:
@@ -45,22 +45,22 @@ dependencies {
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.tommyjs</groupId>
|
<groupId>dev.tommyjs</groupId>
|
||||||
<artifactId>futur-api</artifactId>
|
<artifactId>futur-api</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>2.1.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.tommyjs</groupId>
|
<groupId>dev.tommyjs</groupId>
|
||||||
<artifactId>futur-standalone</artifactId>
|
<artifactId>futur-standalone</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>2.1.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.tommyjs</groupId>
|
<groupId>dev.tommyjs</groupId>
|
||||||
<artifactId>futur-reactor</artifactId>
|
<artifactId>futur-reactor</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>2.1.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.tommyjs</groupId>
|
<groupId>dev.tommyjs</groupId>
|
||||||
<artifactId>futur-reactive-streams</artifactId>
|
<artifactId>futur-reactive-streams</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>2.1.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "dev.tommyjs"
|
group = "dev.tommyjs"
|
||||||
version = "2.1.0"
|
version = "2.1.1"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import java.util.Collection;
|
|||||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.TimeoutException;
|
import java.util.concurrent.TimeoutException;
|
||||||
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
public abstract class AbstractPromise<T> implements Promise<T> {
|
public abstract class AbstractPromise<T> implements Promise<T> {
|
||||||
@@ -316,13 +317,14 @@ public abstract class AbstractPromise<T> implements Promise<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void handleCompletion(@NotNull PromiseCompletion<T> ctx) {
|
protected void handleCompletion(@NotNull PromiseCompletion<T> ctx) {
|
||||||
AtomicReference<Boolean> success = new AtomicReference<>();
|
AtomicBoolean success = new AtomicBoolean();
|
||||||
completion.getAndUpdate(c -> {
|
completion.getAndUpdate(c -> {
|
||||||
if (c == null) {
|
if (c == null) {
|
||||||
return null;
|
|
||||||
} else {
|
|
||||||
success.set(true);
|
success.set(true);
|
||||||
return ctx;
|
return ctx;
|
||||||
|
} else {
|
||||||
|
success.set(false);
|
||||||
|
return c;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -339,7 +341,6 @@ public abstract class AbstractPromise<T> implements Promise<T> {
|
|||||||
try {
|
try {
|
||||||
listener.handle(ctx);
|
listener.handle(ctx);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
|
||||||
getLogger().error("Exception caught in promise listener", e);
|
getLogger().error("Exception caught in promise listener", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "dev.tommyjs"
|
group = "dev.tommyjs"
|
||||||
version = "2.1.0"
|
version = "2.1.1"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "dev.tommyjs"
|
group = "dev.tommyjs"
|
||||||
version = "2.1.0"
|
version = "2.1.1"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
Reference in New Issue
Block a user