Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 2 KB

feature_request.md

File metadata and controls

33 lines (24 loc) · 2 KB
name about title labels assignees
Feature request
We're missing something?

Use case

Explain what specifically you are trying to do and why.

  • Example: "I have a SharedFlow<Double> that represents readings from an external device. The readings arrive in a set interval of 100 milliseconds. However, I also need to be able to calibrate the state of the external device by setting the readings from inside the program. When I set the state, the SharedFlow<Double> must immediately emit the value that was set and ignore any values coming from the device in the following 10 milliseconds since they are considered outdated, as the device is only guaranteed to recalibrate to the updated value after that period."
  • Non-example: "I have a SharedFlow<T> that has several sources of its values, and these sources need to have priorities attached to them so that one source always takes precedence over the other in a close race."
  • Non-example: "RxJava has feature X, so the coroutines library should also."

The Shape of the API

What could the desired API look like? What would some sample code using the new feature look like?

Prior Art

(Optional) Maybe you have seen something like the feature you need, but in other libraries, or there is something very similar but not quite sufficient in kotlinx.coroutines?