summaryrefslogtreecommitdiff
path: root/inttest/erlc/src/foo_test_worker.erl
blob: 96ae932a5bd0386cc3331b9a648683267cb9c14c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-module(foo_test_worker).

-behaviour(gen_server).
-behaviour(foo_worker).

-export([start_link/0,
         start_link/1,
         init/1,
         handle_call/3,
         handle_cast/2,
         handle_info/2,
         terminate/2,
         code_change/3,
         status/0]).

-include_lib("kernel/include/inet.hrl").

start_link() -> start_link(undefined).

start_link(Args) -> gen_server:start_link(?MODULE, Args, []).

init([]) -> {ok, undefined}.

handle_call(_Event, _From, State) -> {reply, ok, State}.

handle_cast(_Event, State) -> {noreply, State}.

handle_info(_Info, State) -> {noreply, State}.

terminate(_Reason, _State) -> ok.

code_change(_OldVsn, State, _Extra) -> {ok, State}.

status() -> busy.