This file contains hidden or 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
| public static <T> Mono<T> fromFuture(Supplier<CompletableFuture<T>> completableFutureSupplier) { | |
| return | |
| Mono.subscriberContext() | |
| .flatMap(context -> | |
| Mono.fromFuture(completableFutureSupplier) | |
| .subscriberContext(context) | |
| .doFinally(signalType -> { | |
| var completableFuture = completableFutureSupplier.get(); | |
| if (SignalType.CANCEL == signalType) { |
This file contains hidden or 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
| ╰─$ git clone [email protected]:pluttrell/spring-data-dynamodb-issue-118.git | |
| Cloning into 'spring-data-dynamodb-issue-118'... | |
| remote: Counting objects: 40, done. | |
| remote: Compressing objects: 100% (30/30), done. | |
| remote: Total 40 (delta 6), reused 34 (delta 0), pack-reused 0 | |
| Receiving objects: 100% (40/40), 56.57 KiB | 1.89 MiB/s, done. | |
| Resolving deltas: 100% (6/6), done. | |
| ╭─pluttrell@PetersMBP ~/dev/repos/github/pluttrell | |
| ╰─$ cd spring-data-dynamodb-issue-118 |
This file contains hidden or 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
| ╰─$ git clone [email protected]:pluttrell/spring-data-dynamodb-issue-118.git | |
| Cloning into 'spring-data-dynamodb-issue-118'... | |
| remote: Counting objects: 40, done. | |
| remote: Compressing objects: 100% (30/30), done. | |
| remote: Total 40 (delta 6), reused 34 (delta 0), pack-reused 0 | |
| Receiving objects: 100% (40/40), 56.57 KiB | 416.00 KiB/s, done. | |
| Resolving deltas: 100% (6/6), done. | |
| ╭─pluttrell@PetersMBP ~/dev/repos/github/pluttrell | |
| ╰─$ cd spring-data-dynamodb-issue-118 |
This file contains hidden or 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
| apply plugin: 'java' | |
| apply plugin: 'maven-publish' | |
| repositories { jcenter() } | |
| dependencies { compile 'org.slf4j:slf4j-api:1.7.12' } | |
| publishing { | |
| repositories { | |
| maven { | |
| url "http://127.0.0.1:8081/artifactory/libs-release-local/" |