Commit 6f75b0e
committed
Allow for subscribe callback to return any value
This commit changes the behaviour of the various subscribe flavors
such that the callback can break the loop by returning any non-null
value.
This would allow, for example, context to be retreived from the message
and then used in such a way to return it to the caller.1 parent e8ad58b commit 6f75b0e
2 files changed
+14
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2898 | 2898 | | |
2899 | 2899 | | |
2900 | 2900 | | |
2901 | | - | |
| 2901 | + | |
2902 | 2902 | | |
2903 | 2903 | | |
2904 | 2904 | | |
| |||
2928 | 2928 | | |
2929 | 2929 | | |
2930 | 2930 | | |
2931 | | - | |
| 2931 | + | |
2932 | 2932 | | |
2933 | 2933 | | |
2934 | 2934 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5764 | 5764 | | |
5765 | 5765 | | |
5766 | 5766 | | |
5767 | | - | |
5768 | | - | |
5769 | | - | |
5770 | | - | |
5771 | | - | |
5772 | | - | |
5773 | | - | |
5774 | | - | |
5775 | | - | |
5776 | | - | |
| 5767 | + | |
| 5768 | + | |
| 5769 | + | |
| 5770 | + | |
| 5771 | + | |
| 5772 | + | |
| 5773 | + | |
| 5774 | + | |
| 5775 | + | |
| 5776 | + | |
| 5777 | + | |
5777 | 5778 | | |
5778 | | - | |
5779 | | - | |
5780 | | - | |
5781 | | - | |
| 5779 | + | |
5782 | 5780 | | |
5783 | 5781 | | |
5784 | 5782 | | |
| |||
0 commit comments