예제 #1
0
        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);
        }
예제 #2
0
        private async UniTaskVoid Start()
        {
            await UniTaskAsyncEnumerable
            .Repeat("Hi!", 3)
            .ForEachAsync(x => Debug.Log(x));

            Debug.Log("Done");
        }