public async Task RepeatTest(string value, int count) { var xs = await UniTaskAsyncEnumerable.Repeat(value, count).ToArrayAsync(); var ys = Enumerable.Repeat(value, count).ToArray(); xs.Should().Equal(ys); }
private async UniTaskVoid Start() { await UniTaskAsyncEnumerable .Repeat("Hi!", 3) .ForEachAsync(x => Debug.Log(x)); Debug.Log("Done"); }