Skip to content

[MovingWindow] Add a trigger that fires after having received a fixed number of samplesย #967

@matthias-wende-frequenz

Description

What's needed?

Currently there is no clean way to wait until the MovingWindow got updated with a certain number of samples.
This feature has been requested in the past and there has been an initial implemented attempt #387.

This feature has been requested again now by @cwasicki.

Proposed solution

Introduce an asynchronous wait_for_samples method that returns once the requested number of new samples has been stored in the MovingWindow.

Use cases

Alternatives and workarounds

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

part:data-pipelineAffects the data pipelinetype:enhancementNew feature or enhancement visitble to users

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions