elixir-lang / gen_stage

Producer and consumer actors with back-pressure for Elixir
http://hexdocs.pm/gen_stage
1.48k stars 192 forks source link

Add support for `handle_continue/2` callback #300

Open maartenvanvliet opened 1 year ago

maartenvanvliet commented 1 year ago

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.

maartenvanvliet commented 1 year ago

@josevalim could you have a look?

acco commented 3 months ago

@whatyouhide I know you reviewed the last revision - any chance you can take a look at this one? 🙏