dispatch

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Async

func Async(queue Queue, fn func())

func Sync

func Sync(queue Queue, fn func())

Types

type Dispatched

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

func Do

func Do(queue Queue, fn func() error) Dispatched

func (Dispatched) Wait

func (d Dispatched) Wait() error

type Queue

type Queue unsafe.Pointer

func MainQueue

func MainQueue() Queue

Jump to

Keyboard shortcuts

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