Skip to content

Commit

Permalink
javadoc update
Browse files Browse the repository at this point in the history
Signed-off-by: David Kral <david.k.kral@oracle.com>
  • Loading branch information
Verdent committed Oct 1, 2020
1 parent 8291257 commit ebfd4b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common/http/src/main/java/io/helidon/common/http/Content.java
Expand Up @@ -16,7 +16,9 @@

package io.helidon.common.http;

import java.util.concurrent.Executor;
import java.util.concurrent.Flow;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;

Expand Down Expand Up @@ -128,6 +130,11 @@ public interface Content extends Multi<DataChunk> {
* The conversion requires an appropriate reader to be already registered
* (see {@link #registerReader(Predicate, Reader)}). If no such reader is found, the
* resulting completion stage ends exceptionally.
* <p>
* Any callback related to the returned value, should not be blocking. Blocking operation could cause deadlock.
* If you need to use blocking API such as {@link java.io.InputStream} it is highly recommended to do so out of
* the scope of reactive chain, or to use methods like
* {@link java.util.concurrent.CompletionStage#thenAcceptAsync(Consumer, Executor)}.
*
* @param <T> the requested type
* @param type the requested type class
Expand Down

0 comments on commit ebfd4b7

Please sign in to comment.