Documentation
¶
Index ¶
- type Fake
- func (f *Fake[T]) Close(t T)
- func (f *Fake[T]) Enqueue(t T)
- func (f *Fake[T]) Reset(loop.Handler[T], uint64) loop.Interface[T]
- func (f *Fake[T]) Run(ctx context.Context) error
- func (f *Fake[T]) WithClose(fn func(T)) *Fake[T]
- func (f *Fake[T]) WithEnqueue(fn func(T)) *Fake[T]
- func (f *Fake[T]) WithRun(fn func(context.Context) error) *Fake[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake[T any] struct { // contains filtered or unexported fields }
func (*Fake[T]) WithEnqueue ¶
Click to show internal directories.
Click to hide internal directories.