Registry / utility / wait
library0.2.0gogounverified

Package wait provides tools for polling or listening for changes to a condition in Go.

go get gomodules.xyz/wait
INSTALL
IMPORT
SIG · WAIT
W
wait
utilitygov0.2.0
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.

wait
gomodules.xyz/wait

Polls a condition every second until it returns true or timeout.

package main import ( "fmt" "time" "gomodules.xyz/wait" ) func main() { err := wait.PollImmediate(time.Second, 10*time.Second, func() (bool, error) { fmt.Println("checking condition...") return true, nil }) fmt.Println(err) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
wait — go get wait · libregistry