Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SingleWait ¶
type SingleWait[T any] struct { // contains filtered or unexported fields }
func New ¶
func New[T any](fn func() T) *SingleWait[T]
New creates a new instance of SimpleStruct and initiates the Done channel.
func (*SingleWait[T]) GetData ¶
func (s *SingleWait[T]) GetData() T
func (*SingleWait[T]) Process ¶
func (s *SingleWait[T]) Process(fn func() T)
Process simulates a long running process and closes the Done channel when finished.
Click to show internal directories.
Click to hide internal directories.