Revert "+str #15802 Make TickSource cancellable"
This reverts commit 9e19ab095cd6ae37ea689d00031d58a54a90c912.
This commit is contained in:
parent
d9d905071b
commit
d1daec8590
5 changed files with 18 additions and 82 deletions
|
|
@ -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)
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue