We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a8c63 commit 0809ef5Copy full SHA for 0809ef5
lib/elixir/lib/stream.ex
@@ -423,6 +423,10 @@ defmodule Stream do
423
This operation will block the caller by the given interval
424
every time a new item is streamed.
425
426
+ Do not use this function to generate a sequence of numbers.
427
+ If blocking the caller process is not necessary, use
428
+ `Stream.iterate(0, & &1 + 1)` instead.
429
+
430
## Examples
431
432
iex> Stream.interval(10) |> Enum.take(10)
0 commit comments