-module(test_select_server).
-behaviour(gen_select_server).
-export([start_link/0, call/1, …]).
-selection([[{call, {first, ’$1’, ’$1’}},
{all, nepp}],
{cast, {second, ’$1’, ’$1’}}]).
start_link() -> gen_select_server:start_link({local,?MODULE},?MODULE,no_args,[]).
…
init(no_args) -> {ok, none}.
handle_call(Msg, _, none) ->
io:format("Call:[p]n", [Msg]),
{reply, ok, none}.
…