Closed nietaki closed 7 years ago
After some more consideration, I don't think it's a good idea.
The Flow
returned by Crawlie is flexible to work with and can be used in any supervision structure the user sees fit. Flow
also provides helpers for running flows as a separate process, instead of just "locally". Running it as part of Crawlie's supervision tree would limit the flexibility and I don't see much benefit to it anymore.
There seems to be some work done by the GenStage guys for it: https://github.com/elixir-lang/gen_stage/blob/master/examples/consumer_supervisor.exs