et-go 20240919重建
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
297 B

package group
import (
"fmt"
"testing"
"time"
)
func Test_GroupDueTask_s(t *testing.T) {
// 创建分组超时任务对象
dt := NewBaseDueTask()
time.Sleep(time.Second * 5)
fmt.Println("Is Timeout:", dt.IsTimeout())
fmt.Println("Elapsed Seconds:", dt.ElapsedSecs())
dt.SetTimeout()
}