mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-15 19:40:09 +00:00
SkipLast
This commit is contained in:
@@ -39,9 +39,11 @@ namespace NetCoreSandbox
|
||||
|
||||
static async Task Main(string[] args)
|
||||
{
|
||||
await foreach (var item in UniTaskAsyncEnumerable.Range(1, 10).Do(x => Console.WriteLine("DO:" + x))
|
||||
//.TakeWhileAwait(x => UniTask.FromResult(x < 5))
|
||||
.Take(5)
|
||||
await foreach (var item in UniTaskAsyncEnumerable.Range(1, 10)
|
||||
.SelectAwait(x => UniTask.Run(() => x))
|
||||
.SkipLast(6)
|
||||
|
||||
|
||||
|
||||
)
|
||||
{
|
||||
@@ -53,6 +55,8 @@ namespace NetCoreSandbox
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user