https://github.com/maxking/reminder
Reminder application in erlang
https://github.com/maxking/reminder
Last synced: 2 months ago
JSON representation
Reminder application in erlang
- Host: GitHub
- URL: https://github.com/maxking/reminder
- Owner: maxking
- Created: 2014-06-05T17:08:17.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-05T17:10:30.000Z (about 12 years ago)
- Last Synced: 2025-01-20T22:51:04.412Z (over 1 year ago)
- Language: Erlang
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
##To-Do in Erlang
This is a concurrent reminder application. You can set a reminder and event
server starts a process which when dies after given timeout sends out message
which is then delegated to the subscribed clients.
Compile the code by
`erl -make`
Usage:
```erlang
1> evserv:start().
<0.34.0>
2> evserv:subscribe(self()).
{ok,#Ref<0.0.0.31>}
3> evserv:add_event("Hey there", "test", FutureDateTime).
ok
4> evserv:listen(5).
[]
5> evserv:cancel("Hey there").
ok
6> evserv:add_event("Hey there2", "test", NextMinuteDateTime).
ok
7> evserv:listen(2000).
[{done,"Hey there2","test"}]
```