summaryrefslogtreecommitdiff
path: root/inttest/erlc/src/behaviour/foo_worker.erl
blob: 307c69a671c40e6b2af7b1c1463621b34bd80a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-module(foo_worker).

-ifdef(NO_CALLBACK_ATTRIBUTE).

-export([behaviour_info/1]).

behaviour_info(callbacks) -> [{status, 0}];
behaviour_info(_) -> undefined.

-else.

-callback status() -> 'idle' | 'busy'.

-endif.