akka/akka-core

Generalize Split strategies

Open

#19,253 opened on Dec 21, 2015

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Scala (3,547 forks)batch import
1 - triagedhelp wantedt:stream

Repository metrics

Stars
 (13,277 stars)
PR merge metrics
 (Avg merge 8d 19h) (10 merged PRs in 30d)

Description

Split currently only supports one of SplitBefore and SplitAfter where all elements ultimately land in one of the to substreams.

A combination of both could emit more than two substreams where elements outside of these start and end markers are dropped.

This could render StreamUtils.sliceBytesTransformer redundant which is currently used in RangeDirectives.

Contributor guide