mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-25 04:59:01 +08:00
Merge pull request #129 from GeWuYou/deepsource-autofix-b7cf8394
refactor: simplify single-statement getter
This commit is contained in:
commit
8d656b90a7
@ -30,12 +30,6 @@ public sealed class WaitForAllCoroutines(
|
|||||||
/// 获取一个值,指示所有协程是否已完成执行
|
/// 获取一个值,指示所有协程是否已完成执行
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>当所有协程都已完成时返回true,否则返回false</returns>
|
/// <returns>当所有协程都已完成时返回true,否则返回false</returns>
|
||||||
public bool IsDone
|
// 检查所有协程句柄是否都不在调度器中存活
|
||||||
{
|
public bool IsDone => _handles.All(handle => !_scheduler.IsCoroutineAlive(handle));
|
||||||
get
|
|
||||||
{
|
|
||||||
// 检查所有协程句柄是否都不在调度器中存活
|
|
||||||
return _handles.All(handle => !_scheduler.IsCoroutineAlive(handle));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user