dispatch

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

Queue is for dispatch_queue_t

func GetGlobalQueue added in v0.14.4

func GetGlobalQueue(identifier QueuePriority, flags uintptr) Queue

func GetMainQueue

func GetMainQueue() Queue

func (Queue) DispatchAsync

func (q Queue) DispatchAsync(task func())

func (Queue) DispatchSync

func (q Queue) DispatchSync(task func())

func (Queue) Release

func (q Queue) Release()

func (Queue) Retain

func (q Queue) Retain()

type QueuePriority added in v0.14.4

type QueuePriority int
const (
	QueuePriorityDefault    QueuePriority = 0
	QueuePriorityHigh       QueuePriority = 2
	QueuePriorityLow        QueuePriority = -2
	QueuePriorityBackground QueuePriority = math.MinInt16
)

Jump to

Keyboard shortcuts

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