Registry / utility / faiface-mainthread

faiface-mainthread

JSON →
library0.0.0-20171120011319-8b78f0a41ae3gogounverified

Package mainthread provides a way to run functions on the main goroutine, useful for GUI applications that require thread-safe operations.

go get github.com/faiface/mainthread
INSTALL
IMPORT
SIG · FAIFACE-MAINTHREAD
F
faiface-mainthread
utilitygov0.0.0-20171120011319-8b78f0a41ae3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mainthread
github.com/faiface/mainthread

Runs a function on the main goroutine.

package main import ( "fmt" "github.com/faiface/mainthread" ) func main() { mainthread.Run(func() { fmt.Println("Hello from main thread") }) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20171120011319-8b78f0a41ae3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
faiface-mainthread — go get faiface-mainthread · libregistry