Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uni memoization is not experimental anymore #798

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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