Skip to content

Commit

Permalink
Uni memoization is not experimental anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
jponge committed Jan 5, 2022
1 parent 5557d82 commit 6745d4b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
16 changes: 16 additions & 0 deletions implementation/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,22 @@
"code": "java.method.removed",
"old": "method io.smallrye.mutiny.groups.MultiTransform<T> io.smallrye.mutiny.operators.AbstractMulti<T>::transform() @ io.smallrye.mutiny.helpers.spies.MultiOnTerminationSpy<T>",
"justification": "Deprecated API removal (~1 year old)"
},
{
"ignore": true,
"code": "java.annotation.removed",
"old": "method io.smallrye.mutiny.groups.UniMemoize<T> io.smallrye.mutiny.Uni<T>::memoize()",
"new": "method io.smallrye.mutiny.groups.UniMemoize<T> io.smallrye.mutiny.Uni<T>::memoize()",
"annotation": "@io.smallrye.common.annotation.Experimental(\"Memoization is an experimental feature at this stage\")",
"justification": "Experimental API has been promoted"
},
{
"ignore": true,
"code": "java.annotation.removed",
"old": "class io.smallrye.mutiny.groups.UniMemoize<T>",
"new": "class io.smallrye.mutiny.groups.UniMemoize<T>",
"annotation": "@io.smallrye.common.annotation.Experimental(\"Memoization is an experimental feature at this stage\")",
"justification": "Experimental API has been promoted"
}
]
}
Expand Down
1 change: 0 additions & 1 deletion implementation/src/main/java/io/smallrye/mutiny/Uni.java
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ default UniAwait<T> awaitUsing(Context context) {
* @return the object to configure memoization
* @apiNote This is an experimental API
*/
@Experimental("Memoization is an experimental feature at this stage")
@CheckReturnValue
UniMemoize<T> memoize();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
import java.util.function.BooleanSupplier;

import io.smallrye.common.annotation.CheckReturnValue;
import io.smallrye.common.annotation.Experimental;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.infrastructure.Infrastructure;
import io.smallrye.mutiny.operators.AbstractUni;
import io.smallrye.mutiny.operators.uni.UniMemoizeOp;

@Experimental("Memoization is an experimental feature at this stage")
public class UniMemoize<T> {

private final Uni<T> upstream;
Expand Down

0 comments on commit 6745d4b

Please sign in to comment.