mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 19:03:29 +08:00
- 实现协程分组功能,支持批量暂停、恢复和终止协程 - 添加协程优先级系统,支持从最低到最高的5个优先级级别 - 引入协程统计功能,跟踪启动、完成、失败数量及执行时间 - 添加FakeTimeSource用于协程测试的时间控制 - 实现按优先级排序的协程执行机制 - 添加协程执行时间戳记录功能 - 实现完整的协程统计报告生成功能
20 lines
810 B
C#
20 lines
810 B
C#
// Copyright (c) 2025 GeWuYou
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
global using System;
|
|
global using System.Collections.Generic;
|
|
global using System.Linq;
|
|
global using System.Threading;
|
|
global using System.Threading.Tasks;
|
|
global using NUnit.Framework;
|
|
global using NUnit.Compatibility; |