public override async Task Begin(object obj, SynchronousOptions opts = null) { if (LeftSynchronizer is BinarySynchronizer && LeftSynchronizer.WillBegin(obj, opts)) { await LeftSynchronizer.Begin(obj, opts); } else { await RightSynchronizer.Begin(obj, opts); } }
public override Task Begin(object obj, SynchronousOptions opts = null) { return(Task.WhenAll(LeftSynchronizer.Begin(obj, opts), RightSynchronizer.Begin(obj, opts))); }