@@ -113,31 +113,28 @@ class dispatch_queue {
113113
114114 /* *
115115 * Wait until all pending tasks finish processing.
116- * @see std::future<T>::wait
117116 */
118117 void wait ();
119118
120119 /* *
121120 * Wait until all pending tasks finish processing.
122- * Blocks until specified `timeout_duration` has elapsed or the result becomes available, whichever comes first.
123- * The return value indicates why `wait_for` returned.
124- * @see std::future<T>::wait_for
121+ * Blocks until specified `timeout_duration` has elapsed or all queued tasks complete, whichever comes first.
122+ * @returns `false` if the timeout has expired, otherwise `true`.
125123 */
126124 template <class Rep , class Period >
127- std::future_status wait_for (const std::chrono::duration<Rep, Period>& timeout_duration) {
125+ bool wait_for (const std::chrono::duration<Rep, Period>& timeout_duration) {
128126 if (worker_pool) {
129127 return worker_pool->wait_for (timeout_duration);
130128 }
131129 else {
132- return std::future_status::ready ;
130+ return true ;
133131 }
134132 }
135133
136134 /* *
137135 * Wait until all pending tasks finish processing.
138- * Blocks until the specified `timeout_time` has been reached or the result becomes available, whichever comes first.
139- * The return value indicates why `wait_until` returned.
140- * @see std::future<T>::wait_until
136+ * Blocks until the specified `timeout_time` has been reached or all queued tasks complete, whichever comes first.
137+ * @returns `false` if the timeout has expired, otherwise `true`.
141138 */
142139 template <class Clock , class Duration >
143140 bool wait_until (const std::chrono::time_point<Clock, Duration>& timeout_time) {
0 commit comments