public static <T extends Request> ThrottlingStrategy<T> of(
            BiFunction<? super ServiceRequestContext, T, ? extends CompletionStage<Boolean>> function) {
        return new ThrottlingStrategy<T>(null) {
            @Override
            public CompletionStage<Boolean> accept(ServiceRequestContext ctx, T request) {
                return function.apply(ctx, request);
            }
        };
    }
Creates a new {@link ThrottlingStrategy} that determines whether a request should be accepted or not
using a given {@link BiFunction} instance.
core/src/main/java/com/linecorp/armeria/server/throttling/ThrottlingStrategy.java