package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: May 20, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package testbarrier implements a barrier for testing asynchronous systems.
WaitForGroup waits for a sync.WaitGroup for up to the specified duration.
If the deadline expires, the test will fail immediately.
Barrier blocks tests for a limited duration until an event happens.
Lift the barrier. Must be called when the event happens.
Wait for the barrier to lift for up to a duration `d`.
If the deadline expires, the test will fail immediately.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.