Documentation ¶
Overview ¶
Package store store all tasks
Example ¶
package main import ( "context" "fmt" "time" "github.com/Laisky/go-ramjet/internal/tasks/store" ) func bindTask() { fmt.Println("bind task") go store.TaskStore.Ticker(1*time.Second, taskRunner) } func taskRunner() { fmt.Println("running task") } func main() { // bind task binder store.TaskStore.Store("demo", bindTask) // start task binder go store.TaskStore.Start(context.Background()) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.