=str #15707 name unnamed modules

* give name attribute to TickSource and nested modules
* reflow module toString output
* give toString to flow
This commit is contained in:
Martynas Mickevičius 2015-11-04 11:43:11 +02:00
parent 3b9b95b0eb
commit ee5ec72552
14 changed files with 48 additions and 36 deletions

View file

@ -204,8 +204,8 @@ object Source {
* element is produced it will not receive that tick element later. It will
* receive new tick elements as soon as it has requested more elements.
*/
def apply[T](initialDelay: FiniteDuration, interval: FiniteDuration, tick: T): Source[T, Cancellable] =
fromGraph(new TickSource[T](initialDelay, interval, tick))
def tick[T](initialDelay: FiniteDuration, interval: FiniteDuration, tick: T): Source[T, Cancellable] =
fromGraph(new TickSource[T](initialDelay, interval, tick).withAttributes(DefaultAttributes.tickSource))
/**
* Create a `Source` with one element.