lehoff / kairos Goto Github PK
View Code? Open in Web Editor NEWTimer module for Erlang that makes it easy to abstact time out of the tests.
License: MIT License
Timer module for Erlang that makes it easy to abstact time out of the tests.
License: MIT License
Hello,
I'm using chrons library in one of my projects and it looks like your latest commit causes rebar2 get-deps
to fail with the following error.
Pulling chronos from {git,"https://github.com/lehoff/chronos.git",
{branch,"master"}}
Cloning into 'chronos'...
WARN: Directory expected to be an app dir, but no app file found
in ebin/ or src/:
/Users/user/project/deps/chronos
ERROR: Dependency dir /Users/user/project/deps/chronos failed application validation with reason:
{missing_app_file,"/Users/user/project/deps/chronos"}.
ERROR: 'get-deps' failed while processing /Users/user/project: rebar_abort
If you want to have a recurring timer, say every 5 seconds, you have to start a new timer every time it expires.
If this is too troublesome to do it will be possible to introduce recurring timers - I encourage users of Chronos to try it out as it is today and provide me with some information about how recurring timers should work for them. Then I will implement the feature.
Timer module for Erlang that makes it easy to abstact [sic] time out of the tests.
(I can't make a PR for this)
Right now a Chronos timer server can only be started with start_link/1 which means that it will die when the creator of it dies.
It might be a good thing to decouple this, but since I have not found a good use case for this yet it is not implemented.
It will be great if chronos moves to rebar as build tool, since using erlang.mk has some issues when compiling mixed packages which uses the REBAR_DEPS_DIR env variable.
I'm not an erlang expert (just learing elixir now), otherwise will be more than happy to submit a PR for that.
(for reference: https://elixirforum.com/t/help-with-erlang-module-not-available-when-testing-in-travis/2338/10 )
When the requester of a timer dies it should be possible to get the timers that has been requested removed.
This is only a problem if more processes share the same Chronos timer server, since a single process which has started a Chronos timer server will drag Chronos down with it when it dies
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.