mainthread

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 1 Imported by: 17

Documentation

Overview

Package mainthread wrapps the golang.design/x/mainthread, and provides a different implementation for macOS so that it can handle main thread events for the NSApplication.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(f func())

Call calls f on the main thread and blocks until f finishes.

func Init

func Init(main func())

Init initializes the functionality of running arbitrary subsequent functions be called on the main system thread.

Init must be called in the main.main function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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