Schedules a closure to be submitted to the given `Queue` when all tasks associated with self have completed. If self is empty, the closure is submitted immediately.
(&self, queue: &Queue, work: F)
| 43 | /// associated with self have completed. |
| 44 | /// If self is empty, the closure is submitted immediately. |
| 45 | pub fn notify<F>(&self, queue: &Queue, work: F) |
| 46 | where F: 'static + Send + FnOnce() { |
| 47 | let (context, work) = context_and_function(work); |
| 48 | unsafe { |
| 49 | dispatch_group_notify_f(self.ptr, queue.ptr, context, work); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | /// Waits synchronously for all tasks associated with self to complete. |
| 54 | pub fn wait(&self) { |