public static bool CatchErrorBool([NotNull] this SyncLock syncLock, Action func, Action <Exception> onError) => syncLock.Lock(() => CatchErrorBool(func, onError));
public static bool CatchErrorBool([NotNull] this SyncLock syncLock, Action func) => syncLock.Lock(() => CatchErrorBool(func));