dispatch

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 2 Imported by: 0

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