electron-egg electron-egg
首页
  • v4.x
  • v3.x
  • v2.x
插件
  • v4.x
  • v3.x
demo
支持
知识点
案例
交流
  • GitHub (opens new window)
  • Gitee (opens new window)
首页
  • v4.x
  • v3.x
  • v2.x
插件
  • v4.x
  • v3.x
demo
支持
知识点
案例
交流
  • GitHub (opens new window)
  • Gitee (opens new window)
❤️成为赞助商
  • 教程

  • ee-bin

  • ee-core

  • ee-go

    • eapp
    • eboot
    • econfig
    • eerror
    • ehelper
    • ehttp
    • erouter
    • elog
    • eos
    • eruntime
    • estatic
    • eutil
    • etask
    目录

    etask

    ee-go:v1.1.0

    # 介绍

    任务队列模块

    # 使用方法

    import (
    	"github.com/wallace5303/ee-go/eapp"
    )
    

    # API列表

    任务队列可以更好的处理异步任务。

    # func AddTask(action string, handler interface{}, args ...interface{})

    添加任务。

    # func AddTaskWithTimeout(action string, handler interface{}, timeout time.Duration, args ...interface{})

    添加超时任务。

    # func Status()

    任务状态。

    # func ExecTask()

    执行任务。

    # func Every()

    每隔一段时间执行任务。

    上次更新: 2025/06/06, 07:21:49
    eutil

    ← eutil

    Theme by Vdoing | Copyright © 2023-2025 哆啦好梦 | 京ICP备15041380号-2
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式
    ×