Issue with Source throttle

I have following code:

Source.from(myIterator).throttle(10000, java.time.Duration.ofMillis(1000));

But compiler says method ‘throttle’ cannot be resolved. But I can see method documented here:

throttle(int elements, java.time.Duration per)
Sends elements downstream with speed limited to elements/per

I am using Alpakka dependency:


What am I missing here?

Double check if you have imported Source from instead of scaladsl.