Garret Yoder
02/09/2024, 7:50 PMkevin.cianfarini
02/09/2024, 7:51 PMChannel
?Garret Yoder
02/09/2024, 7:52 PMSemaphore
to limit the execution of coroutines to n concurrentlyGarret Yoder
02/09/2024, 7:53 PMGarret Yoder
02/09/2024, 7:55 PMkevin.cianfarini
02/09/2024, 8:08 PMMutableStateFlow<Set<Parameter>>
would do the trick. You could then limit the amount of concurrent jobs spawned by that using a semaphore when collecting it.kevin.cianfarini
02/09/2024, 8:12 PMcreation method 50 times as a widget scrolls past and is recomposing, who caresIt sounds like you might actually be desiring job debouncing
Garret Yoder
02/09/2024, 8:13 PMGarret Yoder
02/09/2024, 8:14 PMGarret Yoder
02/09/2024, 8:15 PM