gitea: Index | Files

package cron

import ""


Package Files


func ListTasks Uses

func ListTasks() []*cron.Entry

ListTasks returns all running cron tasks.

func NewContext Uses

func NewContext()

NewContext begins cron tasks

type Func Uses

type Func func()

Func defines a cron function body

func WithUnique Uses

func WithUnique(name string, body Func) Func

WithUnique wrap a cron func with an unique running check

Package cron imports 6 packages (graph) and is imported by 4 packages. Updated 2019-07-24. Refresh now. Tools for package owners.