@@ -1670,6 +1670,18 @@ send_case(
1670
1670
... ) );
1671
1671
\endcode
1672
1672
*
1673
+ * \note
1674
+ * Since v.5.8.4 the value of empty_timeout (or no_wait_on_empty) is
1675
+ * taken into account when `total_time` is specified. It means that
1676
+ * in the following example the select() returns immediately if
1677
+ * all mchains are empty:
1678
+ * \code
1679
+ * select(
1680
+ * from_all().handle_n(5).no_wait_on_empty().total_time(6s),
1681
+ * receive_case( ch1, ...),
1682
+ * receive_case( ch2, ...) );
1683
+ * \endcode
1684
+ *
1673
1685
* \since v.5.5.16
1674
1686
*/
1675
1687
template <
@@ -1853,6 +1865,20 @@ class prepared_select_t
1853
1865
... ) );
1854
1866
* \endcode
1855
1867
*
1868
+ * \note
1869
+ * Since v.5.8.4 the value of empty_timeout (or no_wait_on_empty) is
1870
+ * taken into account when `total_time` is specified. It means that
1871
+ * in the following example the select() returns immediately if
1872
+ * all mchains are empty:
1873
+ * \code
1874
+ * auto prepared = prepare_select(
1875
+ * from_all().handle_n(5).no_wait_on_empty().total_time(6s),
1876
+ * receive_case( ch1, ...),
1877
+ * receive_case( ch2, ...) );
1878
+ * ...
1879
+ * so_5::select(prepared);
1880
+ * \endcode
1881
+ *
1856
1882
* \since v.5.5.17
1857
1883
*/
1858
1884
template <
@@ -2059,6 +2085,23 @@ class extensible_select_t
2059
2085
* receive_case(ch3, ...));
2060
2086
* \endcode
2061
2087
*
2088
+ * \note
2089
+ * Since v.5.8.4 the value of empty_timeout (or no_wait_on_empty) is
2090
+ * taken into account when `total_time` is specified. It means that
2091
+ * in the following example the select() returns immediately if
2092
+ * all mchains are empty:
2093
+ * \code
2094
+ * // Creation of extensible-select instance with initial set of cases.
2095
+ * auto sel = so_5::make_extensible_select(
2096
+ * so_5::from_all().handle_n(10).no_wait_on_empty().total_time(6s),
2097
+ * receive_case(ch1, ...),
2098
+ * receive_case(ch2, ...));
2099
+ * ...
2100
+ * so_5::add_select_cases(sel, ...);
2101
+ * ...
2102
+ * auto r = select(sel);
2103
+ * \endcode
2104
+ *
2062
2105
* \since v.5.6.1
2063
2106
*/
2064
2107
template <
0 commit comments