Current section

Files

Jump to
simple_bar lib test.ex
Raw

lib/test.ex

defmodule Test do
def try(n,total) do
SimpleBar.print_to_so(:ok,n,total)
|> tryp(n+1,total)
end
def tryp(item,total,total) do
SimpleBar.print_to_so(item,total,total)
item
end
def tryp(item,n,total) do
:timer.sleep(100)
SimpleBar.print_to_so(item,n,total)
|> tryp(n+1,total)
end
end