Popularity
1.4
Declining
Activity
0.0
Stable
9
0
2
Monthly Downloads: 2
Programming language: Elixir
License: MIT License
Tags:
Date And Time
Latest version: v0.0.1
block_timer alternatives and similar packages
Based on the "Date and Time" category.
Alternatively, view block_timer alternatives based on common mentions on social networks and blogs.
-
filtrex
A library for performing and validating complex filters from a client (e.g. smart filters) -
Crontab
Parse Cron Expressions, Compose Cron Expression Strings and Caluclate Execution Dates. -
Ex_Cldr_Dates_Times
Date & times formatting functions for the Common Locale Data Repository (CLDR) package https://github.com/elixir-cldr/cldr -
good_times
Expressive and easy to use datetime functions in Elixir. -
moment
Moment is designed to bring easy date and time handling to Elixir. -
jalaali
Jalaali (also known as Jalali, Persian, Khorshidi, Shamsi) calendar implementation in Elixir. -
timex_interval
A date/time interval library for Elixir projects, based on Timex. -
emojiclock
An Elixir module for returning an emoji clock for a given hour -
Calixir
Calixir is a port of the Lisp calendar software calendrica-4.0 to Elixir. -
japan_municipality_key
Elixir Library for Japan municipality key converting
Learn Elixir in as little as 12 Weeks
A structured learning environment with practical assignments, code reviews, weekly live coaching sessions, job-hunting assistance, and more. Try a Free Preview today!
Promo
learn-elixir.dev
Do you think we are missing an alternative of block_timer or a related project?
README
BlockTimer
Macros to use :timer.apply_after and :timer.apply_interval with a block, e.g.:
iex(1)> import BlockTimer
nil
iex(2)> apply_after 3 |> seconds, do: IO.puts "hello"
{:ok, {1407446427626194, #Reference<0.0.0.371>}}
iex(3)> hello
iex(1)> import BlockTimer
nil
iex(2)> {:ok, counter} = Agent.start_link fn -> 0 end
{:ok, #PID<0.70.0>}
iex(3)> {:ok, tref} = apply_interval 1 |> seconds do
...(3)> Agent.update(counter, fn(count) -> count + 1 end)
...(3)> IO.puts Agent.get(counter, fn(count) -> count end)
...(3)> end
{:ok, {:interval, #Reference<0.0.0.382>}}
iex(4)> 1
2
3
4
5
:timer.cancel tref
{:ok, :cancel}
iex(5)>