mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-16 03:50:11 +00:00
20 lines
478 B
C#
20 lines
478 B
C#
|
|
using System.Threading;
|
|||
|
|
|
|||
|
|
namespace Cysharp.Threading.Tasks
|
|||
|
|
{
|
|||
|
|
public interface IUniTaskAsyncEnumerable<out T>
|
|||
|
|
{
|
|||
|
|
IUniTaskAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public interface IUniTaskAsyncEnumerator<out T> : IUniTaskAsyncDisposable
|
|||
|
|
{
|
|||
|
|
T Current { get; }
|
|||
|
|
UniTask<bool> MoveNextAsync();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public interface IUniTaskAsyncDisposable
|
|||
|
|
{
|
|||
|
|
UniTask DisposeAsync();
|
|||
|
|
}
|
|||
|
|
}
|