Documentation ¶
Index ¶
- Variables
- type AsyncResults
- func (r *AsyncResults[Data]) Add(d Data)
- func (r *AsyncResults[Data]) Eventually(tb testing.TB, blk func(testing.TB, []Data))
- func (r *AsyncResults[Data]) Finish()
- func (r *AsyncResults[Data]) ReceivedAt() time.Time
- func (r *AsyncResults[Data]) Subscription() pubsub.Subscription[Data]
- func (r *AsyncResults[Data]) Values() []Data
Constants ¶
This section is empty.
Variables ¶
View Source
var Eventually = assert.Eventually{ RetryStrategy: &Waiter, }
View Source
var Waiter = assert.Waiter{ WaitDuration: time.Millisecond, Timeout: 5 * time.Second, }
Functions ¶
This section is empty.
Types ¶
type AsyncResults ¶ added in v0.128.0
type AsyncResults[Data any] struct { // contains filtered or unexported fields }
func Subscribe ¶ added in v0.128.0
func Subscribe[Data any](tb testing.TB, sub pubsub.Subscriber[Data], ctx context.Context) *AsyncResults[Data]
func (*AsyncResults[Data]) Add ¶ added in v0.128.0
func (r *AsyncResults[Data]) Add(d Data)
func (*AsyncResults[Data]) Eventually ¶ added in v0.128.0
func (r *AsyncResults[Data]) Eventually(tb testing.TB, blk func(testing.TB, []Data))
func (*AsyncResults[Data]) Finish ¶ added in v0.128.2
func (r *AsyncResults[Data]) Finish()
func (*AsyncResults[Data]) ReceivedAt ¶ added in v0.128.2
func (r *AsyncResults[Data]) ReceivedAt() time.Time
func (*AsyncResults[Data]) Subscription ¶ added in v0.155.0
func (r *AsyncResults[Data]) Subscription() pubsub.Subscription[Data]
func (*AsyncResults[Data]) Values ¶ added in v0.128.0
func (r *AsyncResults[Data]) Values() []Data
Click to show internal directories.
Click to hide internal directories.