Merge branch 'wip-delete-futurepublisher-√' into wip-remove-synchronousiterablepublisher-√
This commit is contained in:
commit
91e9396083
5 changed files with 8 additions and 184 deletions
|
|
@ -221,7 +221,7 @@ object Source extends SourceApply {
|
|||
* The stream terminates with a failure if the `Future` is completed with a failure.
|
||||
*/
|
||||
def apply[T](future: Future[T]): Source[T, Unit] =
|
||||
new Source(new FutureSource(future, DefaultAttributes.futureSource, shape("FutureSource")))
|
||||
Source.single(future).mapAsync(1)(identity).withAttributes(DefaultAttributes.futureSource)
|
||||
|
||||
/**
|
||||
* Elements are emitted periodically with the specified interval.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue