!str #16557 Rename Source.singleton to Source.single

This commit is contained in:
Patrik Nordwall 2014-12-16 17:02:27 +01:00
parent 9c47f35459
commit 5bf2ab43bd
13 changed files with 19 additions and 19 deletions

View file

@ -124,8 +124,8 @@ object Source {
* Create a `Source` with one element.
* Every connected `Sink` of this stream will see an individual stream consisting of one element.
*/
def singleton[T](element: T): Source[T] =
new Source(scaladsl.Source.singleton(element))
def single[T](element: T): Source[T] =
new Source(scaladsl.Source.single(element))
/**
* Create a `Source` that immediately ends the stream with the `cause` error to every connected `Sink`.