package
Version:
v0.0.0-...-71a7f5d
Opens a new window with list of versions in this module.
Published: May 10, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Wait is similar with sync.WaitGroup which can wait with timeout
Add adds delta, which may be negative, to the WaitGroup counter.
func (w *Wait) AsyncDo(f func())
AsyncDo async do
Done decrements the WaitGroup counter by one
func (w *Wait) SyncDo(f func())
SyncDo sync do
func (w *Wait) Try(f func())
Try executes f, catching any panic it might spawn. It is safe
to call from multiple goroutines simultaneously.
Wait blocks until the WaitGroup counter is zero.
WaitWithTimeout blocks until the WaitGroup counter is zero or timeout
returns true if timeout
Source Files
¶
Click to show internal directories.
Click to hide internal directories.