MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / set_log_flush_callback

Method set_log_flush_callback

src/attr.rs:226–229  ·  view source on GitHub ↗
(&mut self, callback: F)

Source from the content-addressed store, hash-verified

224 /// Callback for flushing output (if you buffer messages, that's the time to flush those buffers)
225 #[inline]
226 pub fn set_log_flush_callback<F: Fn(&Self) + Send + Sync + 'static>(&mut self, callback: F) {
227 self.verbose_printf_flush();
228 self.log_flush_callback = Some(Arc::new(callback));
229 }
230
231 /// Set callback function to be called every time the library makes a progress.
232 /// It can be used to cancel operation early.

Callers 1

Calls 2

newFunction · 0.85
verbose_printf_flushMethod · 0.80

Tested by

no test coverage detected