的handle_call功能gen_server是:如果handle_call函数中存在“record = State”,会发生什么情况?
Module:handle_call(Request, From, State) -> Result
但我遇到一个handle_call功能是这样的:
handle_call(info, _From, #yuv{decoder = undefined} = State) ->
{reply, [], State};
handle_call(info, _From, #yuv{decoder = Decoder} = State) ->
{reply, av_decoder:info(Decoder), State};
handle_call(_Request, _From, State) ->
{noreply, ok, State}.
我想知道发生了什么事?这是在我头上
BTW:将YUV记录是:
-record(yuv, {
host,
name,
media,
decoder,
consumer
}).