gen_stage
gen_stage copied to clipboard
Add support for `handle_continue/2` callback
I took the liberty to address the feedback for this PR https://github.com/elixir-lang/gen_stage/pull/264 as it was open for more than a year. @hazardfn hope you are okay with this?
GenServers also support a timeout in the return value {:ok, state, timeout | :hibernate | {:continue, term}}which is currently not supported by GenStage. I've added this too.
@josevalim could you have a look?
@whatyouhide I know you reviewed the last revision - any chance you can take a look at this one? 🙏
@josevalim @whatyouhide - Hi there! I was just looking for this feature to enable timer base scheduling in my GenStage producer. Is there a chance this could be approved soon?
I need to sit down and review it. The issue is that we need to consider all possible execution scenarios for producers, consumers, and producer_consumer, and those are not trivial. So I need to be in the proper headspace and other tasks take priority at the moment. Sorry.