thread

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

This package used for locking goroutines to the main OS thread. See: https://github.com/golang/go/wiki/LockOSThread

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MainMaybe

func MainMaybe(f func())

MainMaybe calls a function on the main thread. Enabled for macOS only.

func MainWrapMaybe

func MainWrapMaybe(f func())

MainWrapMaybe enables functions to be executed in the main thread. Enabled for macOS only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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