!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

@ -169,7 +169,7 @@ 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] = apply(SynchronousIterablePublisher(List(element), "singleton")) // FIXME optimize
def single[T](element: T): Source[T] = apply(SynchronousIterablePublisher(List(element), "single")) // FIXME optimize
/**
* A `Source` with no elements, i.e. an empty stream that is completed immediately for every connected `Sink`.