Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadChannelWithTimeout ¶ added in v0.0.24
func ReadNonBlocking ¶ added in v0.0.28
func WriteChannelWithTimeout ¶ added in v0.0.28
func WriteNonBlocking ¶ added in v0.0.28
Types ¶
type AtomicBool ¶
type AtomicBool struct {
// contains filtered or unexported fields
}
func NewAtomicBool ¶
func NewAtomicBool(value bool) *AtomicBool
func (*AtomicBool) Get ¶
func (a *AtomicBool) Get() bool
func (*AtomicBool) Set ¶
func (a *AtomicBool) Set(value bool)
func (*AtomicBool) Wait ¶ added in v0.0.24
func (a *AtomicBool) Wait(waitFor bool)
func (*AtomicBool) WaitWithContext ¶ added in v0.0.24
func (a *AtomicBool) WaitWithContext(ctx context.Context, waitFor bool) error
func (*AtomicBool) WaitWithTimeout ¶ added in v0.0.26
func (a *AtomicBool) WaitWithTimeout(timeout time.Duration, waitFor bool) error
Click to show internal directories.
Click to hide internal directories.