Revert "+str #15802 Make TickSource cancellable"

This reverts commit 9e19ab095cd6ae37ea689d00031d58a54a90c912.
This commit is contained in:
Patrik Nordwall 2014-11-07 10:54:30 +01:00
parent d9d905071b
commit d1daec8590
5 changed files with 18 additions and 82 deletions

View file

@ -132,12 +132,8 @@ object Source {
* If a consumer has not requested any elements at the point in time when the tick
* 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.
*
* The [[MaterializedMap]] will contain a [[akka.actor.Cancellable]] for this
* `TickSource` and that can be used for stopping the tick source and thereby
* completing the stream.
*/
def apply[T](initialDelay: FiniteDuration, interval: FiniteDuration, tick: () T): TickSource[T] =
def apply[T](initialDelay: FiniteDuration, interval: FiniteDuration, tick: () T): Source[T] =
TickSource(initialDelay, interval, tick)
/**