Function sync1

Source
pub fn sync1<D1, C, R>(m1: JMutex<D1>, c: C) -> Result<R, JError>
where C: FnOnce(MutexGuard<'_, D1>) -> R,