gotm:Golang任务管理器

时间:2024-05-30 14:42:02
【文件属性】:

文件名称:gotm:Golang任务管理器

文件大小:2KB

文件格式:ZIP

更新时间:2024-05-30 14:42:02

Go

GOTM Golang任务管理器 例子 package main import ( "fmt" "github.com/kimiby/gotm" "time" ) type CustomWorker struct { gotm. Worker } type Node struct { id int } func ( w CustomWorker ) Do ( job * gotm. Job ) { fmt . Println ( "Do custom work" ) } func main () { a := CustomWorker {gotm. Worker { Type : "default" }} g , _ := gotm . Create ( 10 ) g . Register ( & a ) g . Dispatch () for { j := go


【文件预览】:
gotm-master
----gotm.go(2KB)
----LICENSE(1KB)
----README.md(547B)

网友评论