Discover Packages
golang.design/x/hotkey
mainthread
package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Dec 28, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 17
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types Call(f) Init(main)
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
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.
Call calls f on the main thread and blocks until f finishes.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.