Stream.timer/1
defmodule Stream do
def timer(n)
end
Creates a stream that emits a single value after n
milliseconds.
The value emitted is 0. This operation will block the caller by the given time until the element is streamed.
defmodule Stream do
def timer(n)
end
Creates a stream that emits a single value after n
milliseconds.
The value emitted is 0. This operation will block the caller by the given time until the element is streamed.