File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
media/sse/src/main/java/org/glassfish/jersey/media/sse/internal Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1616
1717package org .glassfish .jersey .media .sse .internal ;
1818
19+ import java .util .concurrent .CompletableFuture ;
1920import java .util .concurrent .CompletionStage ;
2021import java .util .concurrent .CopyOnWriteArrayList ;
2122import java .util .concurrent .ExecutorService ;
@@ -102,10 +103,8 @@ public CompletionStage<?> broadcast(final OutboundSseEvent event) {
102103 if (event == null ) {
103104 throw new IllegalArgumentException (LocalizationMessages .PARAM_NULL ("event" ));
104105 }
105- publish (event );
106106
107- // TODO JAX-RS 2.1
108- return null ;
107+ return CompletableFuture .completedFuture (publish (event ));
109108 }
110109
111110 private void notifyOnCompleteHandlers (Flow .Subscriber <? super OutboundSseEvent > subscriber ) {
You can’t perform that action at this time.
0 commit comments