Submits a closure for asynchronous execution on self and returns immediately.
(&self, work: F)
| 155 | /// Submits a closure for asynchronous execution on self and returns |
| 156 | /// immediately. |
| 157 | pub fn exec_async<F>(&self, work: F) where F: 'static + Send + FnOnce() { |
| 158 | let (context, work) = context_and_function(work); |
| 159 | unsafe { |
| 160 | dispatch_async_f(self.ptr, context, work); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | /// After the specified delay, submits a closure for asynchronous execution |
| 165 | /// on self. |
no test coverage detected