Hi Jamie,

That code just refers to an imaginary Flow. There is no pre-built
"throttler" Flow with such signature. We could have used the TCP flow but
that is slightly more complex.

Currently it is not possible to create materialized values yourself
(although you can create this throttler from a graph, using ZipWith and the
tick source and get the same signature). This will change in 1.1, soon,
though.

-Endre

On Tue, Sep 29, 2015 at 4:14 AM, jpswain <[email protected]> wrote:

> Hi all,
>
> Just taking a second look at getting started with Akka Streams 1.0.
>
> I want to make sure I'm understanding the basic ideas.
>
> The example code here:
>
>
> http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0/scala/stream-flows-and-basics.html
>
> shows the use of a `throttler`, but I see this code nowhere.  I don't see
> how it is even possible to create a materialized value yourself, which is
> confusing to me since so much of the Akka Streams documentation and the API
> itself seem to focus on materialized values, and this example code directly
> implies that you can create materialized values yourself:
>
>
>    1. // A flow that internally throttles elements to 1/second, and
>    returns a Cancellable
>    2. // which can be used to shut down the stream
>    3. val flow: Flow[Int, Int, Cancellable] = throttler
>
>
>
>
> Jamie
>
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Typesafe - Reactive apps on the JVM
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to