With this change, we allow the accumulator to be passed to after_fun once iteration is done. This, however, introduces a deprecation on the old format used by Stream.resource/3.
With this change, we allow the accumulator to be passed to after_fun once iteration is done. This, however, introduces a deprecation on the old format used by Stream.resource/3.