async UniTask Test(byte[] data, IDataTransform dataTransform) { var applied = await dataTransform.ApplyAsync(data); var result = await dataTransform.ReverseAsync(applied); Assert.AreEqual(data, result); }
public UniTask <byte[]> ReverseAsync(byte[] data) => _secondTransform.ReverseAsync(data) .ContinueWith(bytes => _firstTransform.ReverseAsync(bytes));
public UniTask <T> DeserializeAsync <T>(byte[] data) => _dataTransform.ReverseAsync(data) .ContinueWith(bytes => _baseProvider.DeserializeAsync <T>(bytes));