neuecc 2020-07-04 06:44:57 +09:00
parent 887db5b281
commit 4a89e3ea86
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ How to create async iterator, C# 8.0 supports async iterator(`async yield return
```csharp ```csharp
// IAsyncEnumerable, C# 8.0 version of async iterator. ( do not use this style, IAsyncEnumerable is not controled in UniTask). // IAsyncEnumerable, C# 8.0 version of async iterator. ( do not use this style, IAsyncEnumerable is not controled in UniTask).
public async IAsyncEnumerable<int> MyEveryUpdate([EnumeratorCancellation]CancellationToken cancelationToken) public async IAsyncEnumerable<int> MyEveryUpdate([EnumeratorCancellation]CancellationToken cancelationToken = default)
{ {
var frameCount = 0; var frameCount = 0;
await UniTask.Yield(); await UniTask.Yield();