forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- turn ResultNode in an abstract class - restrict the support of CompletionStage by default; i.e. only consider CompletableFuture and CompletedStage - in some cases intentionally use "instanceof" to test interfaces as the last resort in order to mitigate the type pollution - also make Qute's version of LazyValue Loom-friendly
- Loading branch information
Showing
9 changed files
with
79 additions
and
35 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
independent-projects/qute/core/src/main/java/io/quarkus/qute/CompletionStageSupport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.quarkus.qute; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
import java.util.concurrent.CompletionStage; | ||
|
||
class CompletionStageSupport { | ||
|
||
static final String SYSTEM_PROPERTY = "quarkus.qute.unrestricted-completion-stage-support"; | ||
|
||
/** | ||
* {@code true} if any {@link CompletionStage} implementation is supported. {@code false} if only {@link CompletableFuture} | ||
* and {@link CompletedStage} are considered in the API. | ||
*/ | ||
static final boolean UNRESTRICTED = Boolean.getBoolean(SYSTEM_PROPERTY); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters