|
129 | 129 |
|
130 | 130 | %% -export([behaviour_info/1]).
|
131 | 131 | -callback init(Args :: term()) ->
|
132 |
| - {#wx_ref{}, State :: term()} | {#wx_ref{}, State :: term(), timeout() | 'hibernate'} | |
133 |
| - {'stop', Reason :: term()} | 'ignore'. |
| 132 | + {#wx_ref{}, State} | {#wx_ref{}, State, timeout() | 'hibernate'} | |
| 133 | + {'stop', Reason :: term()} | 'ignore' when |
| 134 | + State :: term(). |
134 | 135 | -callback handle_event(Request :: #wx{}, State :: term()) ->
|
135 |
| - {'noreply', NewState :: term()} | |
136 |
| - {'noreply', NewState :: term(), timeout() | 'hibernate'} | |
137 |
| - {'stop', Reason :: term(), NewState :: term()}. |
| 136 | + {'noreply', NewState} | |
| 137 | + {'noreply', NewState, timeout() | 'hibernate'} | |
| 138 | + {'stop', Reason :: term(), NewState} when |
| 139 | + NewState :: term(). |
138 | 140 | -callback handle_call(Request :: term(), From :: {pid(), Tag :: term()},
|
139 | 141 | State :: term()) ->
|
140 |
| - {'reply', Reply :: term(), NewState :: term()} | |
141 |
| - {'reply', Reply :: term(), NewState :: term(), timeout() | 'hibernate'} | |
142 |
| - {'noreply', NewState :: term()} | |
143 |
| - {'noreply', NewState :: term(), timeout() | 'hibernate'} | |
144 |
| - {'stop', Reason :: term(), Reply :: term(), NewState :: term()} | |
145 |
| - {'stop', Reason :: term(), NewState :: term()}. |
| 142 | + {'reply', Reply, NewState} | |
| 143 | + {'reply', Reply, NewState, timeout() | 'hibernate'} | |
| 144 | + {'noreply', NewState} | |
| 145 | + {'noreply', NewState, timeout() | 'hibernate'} | |
| 146 | + {'stop', Reason, Reply, NewState} | |
| 147 | + {'stop', Reason, NewState} when |
| 148 | + Reason :: term(), |
| 149 | + NewState :: term(), |
| 150 | + Reply :: term(). |
146 | 151 | -callback handle_cast(Request :: term(), State :: term()) ->
|
147 |
| - {'noreply', NewState :: term()} | |
148 |
| - {'noreply', NewState :: term(), timeout() | 'hibernate'} | |
149 |
| - {'stop', Reason :: term(), NewState :: term()}. |
| 152 | + {'noreply', NewState} | |
| 153 | + {'noreply', NewState, timeout() | 'hibernate'} | |
| 154 | + {'stop', Reason :: term(), NewState} when |
| 155 | + NewState :: term(). |
150 | 156 | -callback handle_info(Info :: timeout() | term(), State :: term()) ->
|
151 |
| - {'noreply', NewState :: term()} | |
152 |
| - {'noreply', NewState :: term(), timeout() | 'hibernate'} | |
153 |
| - {'stop', Reason :: term(), NewState :: term()}. |
| 157 | + {'noreply', NewState} | |
| 158 | + {'noreply', NewState, timeout() | 'hibernate'} | |
| 159 | + {'stop', Reason :: term(), NewState} when |
| 160 | + NewState :: term(). |
154 | 161 | -callback handle_sync_event(Request :: #wx{}, Ref :: #wx_ref{}, State :: term()) ->
|
155 | 162 | ok.
|
156 | 163 | -callback terminate(Reason :: ('normal' | 'shutdown' | {'shutdown', term()} |
|
|
0 commit comments