public static bool Write <T>(this ISynchronizableLock <T> sync, Func <T, bool> read, Action <T> write) { return(sync.Write(-1, read, write)); }
public static TValue Write <T, TValue>(this ISynchronizableLock <T> sync, Func <T, TValue> write) { return(sync.Write(-1, write)); }