Commit 65ae2ef
committed
examples: Reflow manualflowcontrol; check isReady() earlier
This change is mostly to flow the paragraph across multiple lines like
all other text in this file. But I did also replace checking for
isReady() before calling onNext() with checking before creating
messages. If you already have the message created, it doesn't change
much to go ahead and enqueue it, but don't go create another message
immediately.1 parent 16e17ab commit 65ae2ef
File tree
1 file changed
+7
-1
lines changed- examples/src/main/java/io/grpc/examples/manualflowcontrol
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
0 commit comments