Discover Packages
github.com/txperl/hotkey-go
mainthread
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Nov 11, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
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.