queue

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 0 Imported by: 2

Documentation

Overview

package queue provide a universal way of handling queuing and executing tasks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(slice *[]Task, f func(), delay int)

func Run

func Run(slice *[]Task, currentTime int)

Types

type Task

type Task struct {
	F     func()
	Delay int
}

TODO: This entire Task queue should be replaced and core's task queue should be used instead In order to replace, the core task queue must support the ability to update the position of a task in the queue. Also will need to consider order. Currently everything that is queued via QueueCharTask will always happen before all entries in the core task queue. If any implementations depend on this order, this will cause additional problems.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL