mirror of
https://github.com/tommyskeff/futur4j.git
synced 2026-01-17 23:16:01 +00:00
fix compilation exception
This commit is contained in:
@@ -346,7 +346,7 @@ public abstract class AbstractPromise<T, F> implements Promise<T> {
|
||||
}
|
||||
|
||||
private void callListener(PromiseListener<T> listener, PromiseCompletion<T> ctx) {
|
||||
if (listener instanceof AsyncPromiseListener<T>) {
|
||||
if (listener instanceof AsyncPromiseListener) {
|
||||
getExecutor().runAsync(() -> callListenerNow(listener, ctx));
|
||||
} else {
|
||||
callListenerNow(listener, ctx);
|
||||
|
||||
Reference in New Issue
Block a user