diff options
Diffstat (limited to 'eco_watcher.erl')
| -rw-r--r-- | eco_watcher.erl | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/eco_watcher.erl b/eco_watcher.erl new file mode 100644 index 0000000..f2b6e25 --- /dev/null +++ b/eco_watcher.erl @@ -0,0 +1,12 @@ +-module(eco_watcher). +-export([watcher/0]). + +watcher() -> +	receive +		{From, stop} -> +			From ! {ok, stopped}, +			{ok, stopped}; +		Msg -> +			io:format("~p~n", [Msg]), +			watcher() +	end. | 
